ReaderView: Recompute page layout when toggling ReaderFooter in

non-reflowable documents.

The code only handled setups with "reclaim bar height" enabled (because
that's my usual workflow, har har), but would have broken in various
more or less obvious ways without it, depending on the exact layout/zoom
settings.
The previous attempts at handling the no-reclaim case were focused
on scroll mode, which is a bit of a nightmare. This approach should
deal as well/badly as the previous one in scroll mode, but actually
handle page mode properly ;).

Re #9979
This commit is contained in:
NiLuJe
2023-01-08 23:37:35 +01:00
parent f74921724a
commit 4732bc9aed
2 changed files with 8 additions and 12 deletions

View File

@@ -2199,8 +2199,8 @@ function ReaderFooter:_updateFooterText(force_repaint, force_recompute)
if force_repaint then
-- If there was a visibility change, notify ReaderView
if self.visibility_change then
self.ui:handleEvent(Event:new("ReaderFooterVisibilityChange"))
self.visibility_change = nil
self.ui:handleEvent(Event:new("ReaderFooterVisibilityChange"))
end
-- NOTE: Getting the dimensions of the widget is impossible without having drawn it first,