mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-22 00:40:27 +00:00
Merge remote branch 'origin/master'
This commit is contained in:
commit
91ee3fbfca
1 changed files with 8 additions and 1 deletions
|
|
@ -422,7 +422,14 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
|
|||
});
|
||||
}
|
||||
|
||||
self.menuPage.one('pageshow',focusMenuItem);
|
||||
self.menuPage.one('pageshow', function() {
|
||||
// silentScroll() is called whenever a page is shown to restore
|
||||
// any previous scroll position the page may have had. We need to
|
||||
// wait for the "silentscroll" event before setting focus to avoid
|
||||
// the browser's "feature" which offsets rendering to make sure
|
||||
// whatever has focus is in view.
|
||||
$(window).one("silentscroll", function(){ focusMenuItem(); });
|
||||
});
|
||||
|
||||
self.menuType = "page";
|
||||
self.menuPageContent.append( self.list );
|
||||
|
|
|
|||
Loading…
Reference in a new issue