[okular] [Bug 478577] New: Cannot make window narrower than ~500 pixels

chkno bugzilla_noreply at kde.org
Fri Dec 15 19:46:38 GMT 2023


https://bugs.kde.org/show_bug.cgi?id=478577

            Bug ID: 478577
           Summary: Cannot make window narrower than ~500 pixels
    Classification: Applications
           Product: okular
           Version: 23.04.3
          Platform: NixOS
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: okular-devel at kde.org
          Reporter: chkno at chkno.net
  Target Milestone: ---

Created attachment 164210
  --> https://bugs.kde.org/attachment.cgi?id=164210&action=edit
Allow the main window to be resized smaller

SUMMARY
The minimum width of the main Okular window is about 505 pixels.  It declines
to be resized narrower than this, even when the document displayed is much
smaller, for example 70 pixels when zoomed all the way out at 12%.


STEPS TO REPRODUCE
1. Open a document
2. Zoom all the way out (12%)
3. Try to shrink the window

OBSERVED RESULT
The window never gets narrower than ~505 pixels.  85% of horizontal screen
space is wasted on the gray background.

EXPECTED RESULT
I can make the window as narrow as I please.

SOFTWARE/OS VERSIONS
KDE Frameworks Version: 5.106.0
Qt Version: Version 5.15.10 (built against 5.15.10)

ADDITIONAL INFORMATION
The cause appears to be that the window refuses to be smaller than the minimum
size of the *welcome screen*, even when the welcome screen is not visible, and
even when the welcome screen was never displayed, such as when okular is
invoked with a command line argument.  The welcome screen is still present in
the UI in a `QStackedWidget` underneath the document view.

This appears to be easy to fix: Just have the `m_centralStackedWidget` report
its size as the currently-visible widget, instead of taking the welcome screen
into account even when it is not displayed.

A patch to fix the problem is attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list