GNOME Bugzilla – Bug 646055
The thumbnails in the sidebar have a huge useless/annoying margin
Last modified: 2015-10-16 21:02:30 UTC
The thumbnails in the sidebar have a huge margin, that makes appear the horizontal scrollbar when it's actually not needed. Also, the scrollbar makes a strange "zigzag" when scrolling down the whole document and the focused thumbnail changes. Attached screenshot. Evince 2.91.93 Archlinux i686
It seems you forgot the attachment.
Created attachment 184627 [details] evince screenshot showing the huge margins of the thumbnails
Seems that I'm not very used to this attachments system... now I "forgot" the text :S Well, only say thanks to all devs and contributors for your work ;) And If you can not reproduce the part of the "zigzag" I'll try to make a .gif or something.
That's the GtkIconView default selection in GTK+3, I'm not sure if we can change that from the theme, but I don't think so. Reassigning.
*** Bug 651857 has been marked as a duplicate of this bug. ***
*** Bug 652889 has been marked as a duplicate of this bug. ***
*** Bug 653128 has been marked as a duplicate of this bug. ***
This bug got more severe with Evince 3.4. There the Thumbnails are neither scalled according to the width of the side panel nor can the size of the side panel be made smaller than the initial size.
The problem is related to bug #680953, in adjust_wrap_width() in gtkiconview.c a fixed size is set for the text cell, that is calculated as the double of the pixbuf cell. So the cell area always requests a minimum size of cell pixbuf width * 2. I've workaround the issue by using custom cell renderers in Evince, see: http://git.gnome.org/browse/evince/commit/?id=1e88e7fd7630c28453475e48b98941ce11b130a6 A possible solution would be to fix bug #680953 to respect the item width and use gtk_icon_view_set_item_width() in Evince.
I guess this has been fixed with http://git.gnome.org/browse/evince/commit/?id=1e88e7fd7630c28453475e48b98941ce11b130a6 ?
Yes, it's "fixed" in evince, but it's a workaround in the end, it would be better to fix bug #680953 and use the convenient GtkIconView api instead of custom cell renderers. I'm going to mark this a duplicate of #680953, because closing it as fixed being a gtk+ issue doesn't look right to me. *** This bug has been marked as a duplicate of bug 680953 ***
*** Bug 646426 has been marked as a duplicate of this bug. ***