Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TagSelectDialog does not always resize correctly #16

Open
RKrahl opened this issue Apr 14, 2016 · 0 comments
Open

TagSelectDialog does not always resize correctly #16

RKrahl opened this issue Apr 14, 2016 · 0 comments
Labels
bug Something isn't working

Comments

@RKrahl
Copy link
Owner

RKrahl commented Apr 14, 2016

The "select tags" dialog in imageview features a list of checkboxes for all tags that are currently defined on the set of images. It also provides a "new tag" entry, if the name of a new tag is entered, this tag is added to the set of defined tags. As a consequence, a new checkbox is added to the dialog window so it needs to be enlarged. This works so far. When the number of tags exceeds ten, the layout of checkboxes switches from one to two columns. At this point, the windows must grow in width (which works) and shrink in height. This shrinking does not work at this point. Only when yet another tag is added, the height of the window is adapted again. The same problem occurs again when the layout switches from two to three columns, after the number of tags exceeds 40.

I guess, the window needs to be updated (e.g. actually drawn) with the new layout at least once, before the layout manager realizes that the new layout has become smaller in height, so that this is taken into account in adjustSize(). But I have no idea how to force such an update before calling adjustSize().

@RKrahl RKrahl added bug Something isn't working priority low labels Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant