added the single call to local function focus button to ensure menu height calculation is accurate Fixes #1453

This commit is contained in:
John Bender 2011-04-21 22:30:39 -07:00
parent 2d2e6d7741
commit cf23361a19

View file

@ -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