Bug 355283

Summary: Feature request: Less columns in overview mode if document has less pages
Product: [Applications] okular Reporter: lauri.lyly
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: wishlist CC: aacid
Priority: NOR Keywords: junior-jobs
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description lauri.lyly 2015-11-13 11:31:47 UTC
I use the overview mode by default, because I read many presentations. However when I open a document with just one page, it is displayed with 1 column of the page, and 2 empty columns.  This can mean that the document is not legible, and I have to switch the view mode or zoom in.

I suggest to set the amount of columns to maximally the amount of pages in the document.

Reproducible: Always

Steps to Reproduce:
1. Open document with just one page, when in overview mode.
Comment 1 null 2017-10-28 19:20:22 UTC
Git commit d679b3c9f23d92e4fb7d4b0154b0937402914a79 by Henrik Fehlauer, on behalf of Alexey Demennikov.
Committed on 28/10/2017 at 19:20.
Pushed by rkflx into branch 'master'.

Set the columns in "Overview" mode to match the amount of pages if document is small

Summary:

The principle is simple. This patch enables overriding the default columns for Overview mode, if the document is small. For example, if document has 1 or 2 pages and the default columns in Okular settings is 3, Overview mode will enable 1 or 2 columns for better UX

Reviewers: #okular, rkflx, ngraham

Reviewed By: rkflx, ngraham

Subscribers: ltoscano, aacid, rkflx, ngraham

Tags: #okular

Differential Revision: https://phabricator.kde.org/D8385

M  +3    -0    ui/pageview.cpp

https://commits.kde.org/okular/d679b3c9f23d92e4fb7d4b0154b0937402914a79