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 657632 - Can't make side pane smaller
Can't make side pane smaller
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
2.32.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 677044 698395 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-08-29 14:43 UTC by David
Modified: 2013-04-19 21:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixes "cannot shrink side pane issue" (2.50 KB, patch)
2012-07-04 22:51 UTC, Kim Nguyễn
none Details | Review
Fixes "cannot shrink side pane issue" and padding issue (3.98 KB, patch)
2012-07-04 22:54 UTC, Kim Nguyễn
none Details | Review

Description David 2011-08-29 14:43:49 UTC
https://bugs.launchpad.net/ubuntu/+source/evince/+bug/704232

Here's a PDF that shows the bug. Once the side pane is enlarged, it is forever large. I can make it even bigger, but never smaller than wherever it previously stopped. If I close and re-open the file, the side pane's previous (large) size for this document persists, and still will not allow resize to the left. Other documents do not behave this way.

I'm on ubuntu 11.04, evince 2.32.0.
Comment 1 David 2011-08-29 14:47:02 UTC
this bugzilla won't let me attach the pdf here; complains about it being too big.  Get it from the launchpad bug that I linked.
Comment 2 Oriol 2012-05-30 13:23:31 UTC
The same problem to me with the side pane. On ubuntu 12.04, Document viewer 3.4.0
Comment 3 Oriol 2012-05-30 13:29:11 UTC
Almost forgot, using gnome 1:3.0+6ubuntu3 (the classic look)
Comment 4 Kim Nguyễn 2012-07-04 19:40:23 UTC
Hi. Here are the steps to reproduce:

1) open a pdf that has a sufficient number of pages (say 3). If the sidepane
hasn't been resized yet, make sure it's visible and that the current one is
'Thumbnails'

2) enlarge the sizepane by dragging the separator to the right. The number of
column increases as soon as there is enough horizontal space.

3) try to drag the separator to the left. you cannot. closing the sidepane or
closing and re-opening evince has no effect (unless gvfs is *not* installed in which case the size information is not saved. In that case, closing and reopening evince works).

*** Workaround ***
the status of the UI is savec for each document. If you tried the step above for
a document (say ~/a.pdf), then you need to reset by hand the metadata that are
attached to it:

gvfs-info ~/a.pdf

there should be:

metadata::evince::sidebar_size: 698

where 698 is just an example (it's the width, in pixels of your sidepane).

Reset this to a sane value:
gvfs-set-attribute -t string ~/a.pdf "metadata::evince::sidebar_size" 100
Comment 5 Kim Nguyễn 2012-07-04 22:51:57 UTC
Created attachment 218058 [details] [review]
Fixes "cannot shrink side pane issue"

This is an attempt at fixing the bug. I used the trick suggested here:

http://askubuntu.com/questions/124654/gtkiconview-doesnt-automatically-fill-the-space-with-icon-when-user-resizes-the

This seems to work pretty well.
Comment 6 Kim Nguyễn 2012-07-04 22:54:53 UTC
Created attachment 218059 [details] [review]
Fixes "cannot shrink side pane issue" and padding issue

Merge of the patch submitted previously with my other patch for:

https://bugzilla.gnome.org/show_bug.cgi?id=671691

At last, the thumbnail sidepane looks a bit less ridiculous.
Comment 7 Germán Poo-Caamaño 2012-10-07 09:57:57 UTC
*** Bug 677044 has been marked as a duplicate of this bug. ***
Comment 8 José Aliste 2012-11-07 17:04:03 UTC
I think this was a bug in Gtk (it seems). as currently can't reproduce in my f17 machine with evince 3.4
Comment 9 Germán Poo-Caamaño 2012-11-07 18:29:26 UTC
(In reply to comment #8)
> I think this was a bug in Gtk (it seems). as currently can't reproduce in my
> f17 machine with evince 3.4

As I wrote in https://bugzilla.gnome.org/show_bug.cgi?id=677044#c2:

Easy steps to reproduce it with master (>3.6):

1. Open a document with several pages.
2. Maximize it.
3. Open the sidebar (Thumbnails)
4. Try to make the sidebar as wide as possible.
   At this point, you will see one column of thumbnails, a lot of white
   space in the sidebar and very thing page view.
5. Navigate to any page using the scrollbar of the sidebar
   Now, the Thumbnails are spread to use multiple columns.

From now on, you can not make the sidebar thinner.  The only solution is
to close the document (or evince) and open it again.

With the document in launchpad and master (ab175a83f), I have to change slightly the way to reproduce it:

1. Open the document (unmaximized in my case)
2. Select Thumbnails from the pane
3. Try to make the sidebar wide enough to allow more than one thumbnail per row.
4. Maximize. With master and that particular document I only see one thumbnail per row until I maximize the window.
5. Now, you can not make the side pane small anymore.
Comment 10 Germán Poo-Caamaño 2013-04-19 19:27:12 UTC
*** Bug 698395 has been marked as a duplicate of this bug. ***
Comment 11 Germán Poo-Caamaño 2013-04-19 21:32:10 UTC
I can not reproduce this problem with 3.8.  It seems to me it was fixed with https://git.gnome.org/browse/evince/commit/?id=30d1c3f4d71d5f536

I am closing this bug as fixed in stable.  If you can reproduce it with
3.8.0, please feel free to re-open it and add more details on how to
reproduce it.