-
Notifications
You must be signed in to change notification settings - Fork 515
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
Fix: level strip width is wrong when you start open toonz (#334) #357
Conversation
) On the creation the docking panel of the level strip was assigned a minimum width. This has no effect, but making the docking panel too big, because the size of the underlying controls hasn't been calculated at this point. Removing the line fixes the issue with the level strip size, without affecting the docking window otherwise.
How was it looks wrong ? Please attach the screenshot or tell us the way to reproduce the issue so that we can understand the issue well. |
I filed a bug report here
|
It says so right in the title :), |
Yeah it does :b thank you for the fix! Hopefully it gets merged
|
Jenkins, confirm this |
In my environment, OSX, I can't reproduce reported bug. And |
On Windows the behaviour does exist. As it is, I prefer not having a minimum with, instead of the window resizing itself. I could make it compile for Windows only, though. |
I still fail to reproduce the Issue #334 under my Windows environment. @Banbury , do you mean that the incorrect (large) value is set at setMinimumWidth() on the creation of the Level Strip panel? If yes, is it possible for you to investigate the value of "filmstrip->width()" at setMinimumWidth()? On my test here, the value of filmstrip->width() is 191 with the icon width of the Level Strip being set to 160 (= default value). 191 is exactly the same as the width of this widget - which is sum of the icon width, slider width and margin of FilmStripFrames. Another one thing I would like to point is that the setMinimumWidth() seems to work properly as @blurymind mentioned in the issue #334 as follows:
Which means that user enable at least to resize the panel to the proper width afterward. |
After some further tests, I strongly believe this is an obscure bug in Qt. It's some kind of unwanted interaction between setMinimumSize() and docking the panel. It doesn't happen, when the panel is undocked. |
Confirmed here. Windows 7 Pro. |
Toonz harlequin does not have this bug, so comparing the source code might
|
In my test i am not resizing it to be wider and that is the point i made - it does that on its own accord when you start the software. The annoying part comes from the fact that you need to resize the width back to how it used to be before the unwanted change took place |
OK. Now I understand this can help some users. LGTM. |
thank you ! :) |
On the creation the docking panel of the level strip was assigned a minimum
width. This has no effect, but making the docking panel too big, because the
size of the underlying controls hasn't been calculated at this point.
Removing the line fixes the issue with the level strip size, without affecting
the docking window otherwise.