From cf23361a19c4f8b8eb5b16d0135b7704fb40f6cf Mon Sep 17 00:00:00 2001 From: John Bender Date: Thu, 21 Apr 2011 22:30:39 -0700 Subject: [PATCH 1/3] added the single call to local function focus button to ensure menu height calculation is accurate Fixes #1453 --- js/jquery.mobile.forms.select.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/jquery.mobile.forms.select.js b/js/jquery.mobile.forms.select.js index 1e4ef093..c91ff24f 100644 --- a/js/jquery.mobile.forms.select.js +++ b/js/jquery.mobile.forms.select.js @@ -554,6 +554,10 @@ $.widget( "mobile.selectmenu", $.mobile.widget, { } if(self.menuType == "page"){ + // button refocus ensures proper height calculation + // by removing the inline style and ensuring page inclusion + self.menuPage.one("pagehide", focusButton); + // doesn't solve the possible issue with calling change page // where the objects don't define data urls which prevents dialog key // stripping - changePage has incoming refactor From 70a86c748f45486303f4ce2d2abb73c8ef13324a Mon Sep 17 00:00:00 2001 From: John Bender Date: Thu, 21 Apr 2011 22:32:37 -0700 Subject: [PATCH 2/3] added a sequenced test to make sure that opening a dialog sized select menu resulted in that same dialog many times. also moved one of the event tests over to core --- tests/unit/select/index.html | 56 ++++++++++++++++++++++++++++++ tests/unit/select/select_core.js | 51 +++++++++++++++++++++++++++ tests/unit/select/select_events.js | 31 ----------------- 3 files changed, 107 insertions(+), 31 deletions(-) diff --git a/tests/unit/select/index.html b/tests/unit/select/index.html index 1ddb9a83..2a9e8c37 100644 --- a/tests/unit/select/index.html +++ b/tests/unit/select/index.html @@ -165,6 +165,62 @@ +
+ + +
+