GNOME Bugzilla – Bug 695101
bookshelf sidebar should set minimum width
Last modified: 2013-10-20 11:23:25 UTC
Created attachment 237921 [details] Devhelp without horizontal scrollbar screenshot Devhelp 3.7.90 with WebKit 1.10.2 (without WebKit2) Devhelp needs a horizontal scrollbar when the sidebar isn't wide enough. See the attached screenshot.
Created attachment 237922 [details] Anjuta with devhelp plugin screenshot It also affects Anjuta 3.7.90 with the devhelp plugin.
I see this too with Devhelp built from git master and WebKit 1.11.92. I personally might be able to live without a horizontal scrollbar if the side pane remained flush left when resized to be small, i.e. if the right side of each book title was cut off. But as you can see in the screenshot Jeremy attached, the *left* side of each title is cut off, which makes the view very difficult to read.
There are a couple of things to consider here... The horizontal scrollbar should affect not only the list, but also the search box and buttons as well. If we end up removing the Current|All books buttons, this may not be needed, though, as we can make the searchbox narrower and that's it. Then, for the list itself, we're ellipsizing the text of each cell (if it doesn't fit we add the '...'), and that's why automatic horizontal scrolling won't work if enabled in the GtkScrolledWindow (the cell won't request more width). Also, we do the ellipsis in both the book tree and in the search hitlist. If we end up adding more columns to the hitlist (e.g. to show which book contains each hit), we do need to ellipsize each cell in the table, don't think we should have a horizontal scrollbar there...
Another way to fix this is just to set a minimum width for the sidebar. Text does ellipsize from the right when the text is too long, but the text just goes missing (from the left!) when the sidebar is too narrow.
I think should add a horizontal scrollbar. The book name maybe very long.
The removal of the [Current|All] filter buttons next to the the search box was now done; and I also pushed a fix to avoid the sidebar being shrunk further than the min width requested by its contents (therefore preventing text going missing from the left). Marking as fixed.