Also scroll window to zero on content load

This commit is contained in:
Kovid Goyal 2017-05-27 20:18:43 +05:30
parent 099d083b25
commit 5d1411a13d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -489,6 +489,7 @@ class View:
self.hide_loading()
frac = data.progress_frac or 0
self.update_read_percent(frac)
window.scrollTo(0, 0) # ensure window is at 0 on mobile where the navbar causes issues
def update_font_size(self):
self.send_message('change_font_size', base_font_size=get_session_data().get('base_font_size'))