Autocrop fix (#11194)

After some tests with the said document from https://github.com/koreader/koreader/issues/970 it seems like that the visual defect occurs for only semi-auto and manual crop modes.

I've removed auto-crop from the rule so fixes https://github.com/koreader/koreader/issues/4106 when using auto-crop.
reviewable/pr11206/r1
hugleo 5 months ago committed by GitHub
parent 498193c26d
commit f990937f9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 then
if (ubbox_dimen.w <= page_size.w and ubbox_dimen.h <= page_size.h) or (self.ui.document.configurable.trim_page == 1) then
page_size = ubbox_dimen
self.view:onBBoxUpdate(ubbox_dimen)
else

Loading…
Cancel
Save