From c2bef45a8ebd323a7d1fdf3314a7e8b1e8ce6d74 Mon Sep 17 00:00:00 2001 From: edward Date: Fri, 21 Jul 2017 13:07:14 +0800 Subject: [PATCH] Roo/bootstrap/Menu.js --- Roo/bootstrap/Menu.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Roo/bootstrap/Menu.js b/Roo/bootstrap/Menu.js index 1080f76f43..ea5c1665ec 100644 --- a/Roo/bootstrap/Menu.js +++ b/Roo/bootstrap/Menu.js @@ -280,12 +280,18 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component, { xy[0] = xy[0] - this.el.getWidth() + this.triggerEl.getWidth(); } - alert(this.el.getStyle('top') * 1); - if(this.el.getStyle('top').slice(-1) != "%"){ + if(!isNaN(this.el.getStyle('top') * 1)){ this.el.setXY(xy); } + /* + * This not working on ios + */ +// if(this.el.getStyle('top').slice(-1) != "%"){ +// +// } + this.focus(); this.fireEvent("show", this); }, -- 2.39.2