GNOME Bugzilla – Bug 300334
Dialog is resized when preview disappears
Last modified: 2014-12-23 11:57:35 UTC
Using an application that lets you see image previews in the file chooser, navigate to a deep folder. Click on an image file. The preview appears on the right side, and the file chooser is resized to accomodate it. Now click on a parent folder in the path bar. The preview disappears, and the dialog gets resized. The path bar is also resized, items that were visible before are suddenly invisible, and (the biggest problem) the item that was under your mouse moves to an unpredictable place (it may even become invisible itself). It's surprising, annoying and means you cannot go back to the folder you were visiting using the path bar. This is especially annoying when you are in a deep folder : with the preview turned on, you can see the whole path in the path bar, but as soon as you click on another folder only one or two folders can be seen. Since there is no easy, visual way to link the previous path bar to the new one, it becomes quite useless.
See also bug #167189
Created attachment 76328 [details] [review] patch Hi!, This small patch fixes this issue by always setting first_scrolled_button. Without this patch, if first_scrolled_button is not set, the pathbar always tries to show the end of the directories hierarchy shown, which unfortunately has the drawback of displacing buttons when the dialog shrinks. With the patch, the buttons don't move when shrinking the dialog, they just hide if they don't fit.
Any news on that? It can still be applied, the code is the same. Applying it is not much. Else, just close that.
The dialog no longer changes size, instead the file selection widget shinks to make room. I think both this bug and bug #167189 are fixed.
I don't think anything is going to change with the current preview implmentation.