mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
zoom mode is meaningless when reflowing, so disable zoom mode options in reflow mode
This commit is contained in:
@@ -85,7 +85,9 @@ function ReaderCropping:onPageCrop(mode)
|
||||
-- backup original zoom mode as cropping use "page" zoom mode
|
||||
self.orig_zoom_mode = self.view.zoom_mode
|
||||
if mode == "auto" then
|
||||
self:setCropZoomMode(true)
|
||||
if self.document.configurable.text_wrap ~= 1 then
|
||||
self:setCropZoomMode(true)
|
||||
end
|
||||
return
|
||||
end
|
||||
-- backup original view dimen
|
||||
|
||||
@@ -295,6 +295,9 @@ function ReaderZooming:addToMainMenu(tab_item_table)
|
||||
if self.ui.document.info.has_pages then
|
||||
table.insert(tab_item_table.typeset, {
|
||||
text = _("Switch zoom mode"),
|
||||
enabled_func = function()
|
||||
return self.ui.document.configurable.text_wrap ~= 1
|
||||
end,
|
||||
sub_item_table = {
|
||||
{
|
||||
text = _("Zoom to fit content width"),
|
||||
|
||||
Reference in New Issue
Block a user