After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 562023 - smart automatic window sizing
smart automatic window sizing
Status: RESOLVED DUPLICATE of bug 674739
Product: evince
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-11-23 16:44 UTC by Jean-François Fortin Tam
Modified: 2012-10-07 07:46 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Jean-François Fortin Tam 2008-11-23 16:44:19 UTC
Evince could behave much smarter at sizing itself when opening a PDF, especially when there is no sizing metadata about it. Here's some pseudocode, tell me if it would make sense:

##### in many cases, the result will likely be a maximized window
get screen_resolution
get document_ratio
get screen_DPI

determine what will be maxed out first: height or width?
if height maxed first:
    max the height
    match screen_DPI for window width as much as possible
else:
    max the width
    match screen_DPI for window height as much as possible
Comment 1 Germán Poo-Caamaño 2012-10-07 07:46:39 UTC
Sorry for marking it as duplicated of a newer bug.

*** This bug has been marked as a duplicate of bug 674739 ***