ReaderZooming: revert Autocrop fix (#11325)

From f990937f9f.
reviewable/pr11463/r1^2
hugleo 2 months ago committed by GitHub
parent 76980098ec
commit 041117cbb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -527,7 +527,7 @@ function ReaderZooming:getZoom(pageno)
local ubbox_dimen = self.ui.document:getUsedBBoxDimensions(pageno, 1)
-- if bbox is larger than the native page dimension render the full page
-- See discussion in koreader/koreader#970.
if (ubbox_dimen.w <= page_size.w and ubbox_dimen.h <= page_size.h) or (self.ui.document.configurable.trim_page == 1) then
if ubbox_dimen.w <= page_size.w and ubbox_dimen.h <= page_size.h then
page_size = ubbox_dimen
self.view:onBBoxUpdate(ubbox_dimen)
else

Loading…
Cancel
Save