Add columns to ReaderZooming paged_modes (#6970)

This means it will warn when changing to continuous mode while
zoom to columns is active.
pull/6909/head
John Beard 3 years ago committed by GitHub
parent 86701f6ccc
commit 096b3176dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -730,12 +730,13 @@ function ReaderView:onSetFullScreen(full_screen)
end
function ReaderView:onSetScrollMode(page_scroll)
if self.ui.document.info.has_pages and page_scroll and self.ui.zooming.paged_modes[self.zoom_mode] then
if self.ui.document.info.has_pages and page_scroll
and self.ui.zooming.paged_modes[self.zoom_mode] then
UIManager:show(InfoMessage:new{
text = _([[
Continuous view (scroll mode) works best with zoom to page width or zoom to content width.
Continuous view (scroll mode) works best with zoom to page width, zoom to content width or zoom to rows.
In combination with zoom to fit page, page height, content height or content, continuous view can cause unexpected shifts when turning pages.]]),
In combination with zoom to fit page, page height, content height, content or columns, continuous view can cause unexpected shifts when turning pages.]]),
timeout = 5,
})
end

@ -53,6 +53,7 @@ local ReaderZooming = InputContainer:new{
pageheight = _("Zoom to fit page height works best with page view."),
contentheight = _("Zoom to fit content height works best with page view."),
content = _("Zoom to fit content works best with page view."),
columns = _("Zoom to fit columns works best with page view."),
},
}

Loading…
Cancel
Save