mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Fix for issue 1461 - Tops of pages missing after dialog click in Safari and iPhone.
- Delayed the setting of focus till *AFTER* the scroll position is restored.
This commit is contained in:
parent
1ec80bdc80
commit
2d2e6d7741
1 changed files with 1 additions and 2 deletions
|
|
@ -458,8 +458,7 @@
|
|||
|
||||
//jump to top or prev scroll, sometimes on iOS the page has not rendered yet. I could only get by this with a setTimeout, but would like to avoid that.
|
||||
$.mobile.silentScroll( to.jqmData( "lastScroll" ) );
|
||||
|
||||
reFocus( to );
|
||||
$(document).one("silentscroll", function(){ reFocus( to ); });
|
||||
|
||||
//trigger show/hide events
|
||||
if( from ){
|
||||
|
|
|
|||
Loading…
Reference in a new issue