footer(refactor): various bug fixes and optimizations

This commit is contained in:
Qingping Hou
2016-11-02 01:38:52 -07:00
parent 3de3fb9b14
commit 558754e9b5
4 changed files with 608 additions and 232 deletions

View File

@@ -244,7 +244,7 @@ function ReaderZooming:getZoom(pageno)
local zoom_w = self.dimen.w
local zoom_h = self.dimen.h
if self.ui.view.footer_visible then
zoom_h = zoom_h - self.ui.view.footer.progress_text:getSize().h
zoom_h = zoom_h - self.ui.view.footer:getHeight()
end
if self.rotation % 180 == 0 then
-- No rotation or rotated by 180 degrees