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 diff --git a/tests/unit/core/core_scroll.js b/tests/unit/core/core_scroll.js index 23069a09..5dad343a 100644 --- a/tests/unit/core/core_scroll.js +++ b/tests/unit/core/core_scroll.js @@ -50,7 +50,7 @@ setTimeout(function(){ ok($(window).scrollTop() != 0, "scrolltop position should not be zero"); start(); - }, scrollTimeout - 2); + }, scrollTimeout - 5); }); asyncTest( "scrolling marks scrollstart as disabled for 150 ms", function(){ diff --git a/tests/unit/navigation/navigation_core.js b/tests/unit/navigation/navigation_core.js index a97bf3c2..3e8901e8 100644 --- a/tests/unit/navigation/navigation_core.js +++ b/tests/unit/navigation/navigation_core.js @@ -426,6 +426,6 @@ same(location.hash, firstDialogHash, "additional dialog hash key not added"); start(); } -], 1000); + ], 1000); }); })(jQuery); 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 @@ +