ReaderRolling: update footer when TOC is updated (#3950)

Footer item "pages left in chapter" was wrong when changing font
sizes or some other layout option (the footer was drown before
this happen, and not after, until we later change page).
Seems to also fix possible wrong ticks position in that case
(may be only when cache is used/re-used, for some not really
obvious reason)
This commit is contained in:
poire-z
2018-05-14 22:06:35 +02:00
committed by Frans de Jonge
parent fcc24fc7b1
commit 1144efafff

View File

@@ -563,6 +563,7 @@ function ReaderRolling:updatePos()
self.old_doc_height = new_height
self.old_page = new_page
self.ui:handleEvent(Event:new("UpdateToc"))
self.view.footer:updateFooter()
end
UIManager:setDirty(self.view.dialog, "partial")
end