@Rellwood - I'm still not understanding why you are not using the horizontal scrollbar in that grid in this circumstance? Using that you can precisely position yourself so the right side end of the super long column is visible in your view. Then you can drag the column header back to a more manageable size?
This isn't behaviour specific to this plugin BTW, thats just how grids usually work, you get exactly the same behaviour in the main calibre grid or even Excel for instance. It reminds me a bit of the saying they use in a lot in legal TV shows of something like "don't ask a question that you haven't prepared for the answer". I have pretty much the same feeling about double clicking on a column to adjust to it's max width - it's fine to do for columns you know are small, but if you aren't sure how wide it will become then better to not do it and just adjust drag it manually to avoid this sort of situation.
I already persist the widths of columns so this isn't something you should regularly have to worry about doing once you set some initial acceptable sizes. Unless you are temporarily trying to look at all values in some very long column (such as lots of tags) for some reason. Is that the use case?
One potential solution to that is I just add tooltips to the grid like the main calibre grid does, so you can see all the values by hovering over the cell rather than having to expand the column.
The only additional thing that comes to mind I "could" do in theory is do what Kovid added for the main UI grid of offering a column header context menu for "Adjust width of column for xxx". TBH I think that dialog is overkill (I've only just found it myself) but I can understand it would give you more granular control over a column width. I don't know if Kovid wrapped it up all his functionality in a nice reusable delegate that would make this a trivial change - I certainly wouldn't want to reinvent the wheel by having to recreate it myself.
|