mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user