mate-desktop / atril

A document viewer for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
205 stars 62 forks source link

Fixed window size for all documents #135

Open Yanpas opened 9 years ago

Yanpas commented 9 years ago

Evince and Mate use "clever" window size option, but for half of documents the windows is too big or too small. And there is no way to disable it. Plesae, add option to save fixed window size

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/12558841-fixed-window-size-for-all-documents?utm_campaign=plugin&utm_content=tracker%2F1323318&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1323318&utm_medium=issues&utm_source=github).
multixrulz commented 8 years ago

This annoys me too. Too-small windows aren't such a headache, but too-large ones can be more than 2x the width of my screen. Some PDFs open with window almost as wide as the screen but only about 100px high.

My preferred fix would be to make the "clever" size follow a logic something like this:

  1. Size the document to 100%.
  2. Calculate a window size that allows for the document width to fit, plus toolbar, sidebar etc.
  3. If the resulting window would be larger than the screen dimensions (only 1 monitor in a multi-monitor setup), force the window to fit within the screen. Then scale the document to fit to width.
CPUGPU commented 6 years ago

This is an ongoing nuisance. For both Evince and now Atril, I can never recall a PDF being opened the first time in a usable size. That's 100% of the time the window size has to be adjusted for a new-to-my-machine PDF. A nice option would be to just open the window to the same size and position every time an unknown PDF is opened. I'm surprised there haven't been more people talking about this, though entirely possible I've missed it.

I'm not much of a coder, how can I help fix this?