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:
Kin Blas 2011-04-21 15:31:21 -07:00
parent 1ec80bdc80
commit 2d2e6d7741

View file

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