[UX] apps/reader/modules/readerfooter: also redraw progressbar on height change (#3780)

pull/3786/head
Frans de Jonge 6 years ago committed by GitHub
parent 79448ac046
commit 96242648c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -268,8 +268,9 @@ end
-- call this method whenever the screen size changes
function ReaderFooter:resetLayout()
local new_screen_width = Screen:getWidth()
if new_screen_width == self._saved_screen_width then return end
local new_screen_height = Screen:getHeight()
if new_screen_width == self._saved_screen_width
and new_screen_height == self._saved_screen_height then return end
if self.settings.disable_progress_bar then
self.progress_bar.width = 0
@ -284,6 +285,7 @@ function ReaderFooter:resetLayout()
self.dimen = self.footer_positioner:getSize()
self._saved_screen_width = new_screen_width
self._saved_screen_height = new_screen_height
end
function ReaderFooter:getHeight()

Loading…
Cancel
Save