set minimum content height for history selective copy dialog#19316
set minimum content height for history selective copy dialog#19316zisoft wants to merge 1 commit intodarktable-org:masterfrom
Conversation
|
OK. Long story. I tried to find a better solution than What I tried to do is size the dialog correctly by default so that it would show all the rows (but no empty space). That is hard to do if you use a hardcoded number that doesn't depend on display resolution or font size/style. Ideally, Unfortunately, the "natural height" for a treeview with scrollbar is always reported as just the height of its header, when propagating to the scrollable window, so that doesn't work. You could ask the size of the treeview explicitly and then But to get the actual sizes, depending on (font)style etc, the dialog actually needs to be shown first. Which means that now it is too late for So after much playing around, I haven't found anything better than a hardcoded number. But I'd still set it using BTW same thing needs to be done in If you want to play with "correctsizing" the dialog; the best I could come up with is |
|
IIRC we do save the size of other dialogs and set the size to the saved one when restarting darktable. Maybe we should do the same here? |
|
My recollection was correct, see use of |
|
Sure, if we can't find out a way to size windows correctly, we can dump the responsibility on the user and save between dialog invocations. There are a few other dialogs that maybe then should be persistently placed. Shall I refactor restoring from darktablerc and setting up the "check-resize" signal handler to store latest? The "ui_last/module_dialog_height" etc category isn't the most appropriate if it is to be used for a bunch of libs as well as the main ui, but I guess we'll stick with it? So a call to |
|
So if you continue your work on this, can we close this PR? |
Yes please! |
|
Added to #19319 |
I think @dterrahe has accidantally deleted the line for setting the minimum content height
in #19118. This leaves the selective copy history dialog in an unusable state.
fixes #19303