Bug #3957
closedWBoxLayout::setResizable() initialSize produces errors with dynamic layout if other widgets are hidden
0%
Description
Hi,
I wanted to use the new initialSize parameter of the WBoxLayout::setResizable() method. It works as expected, but if a widget is hidden the layout does not resize other widgets in this layout. The following screenshots demonstrate the problem:
- Screenshot shows the initial state of the application
- Screenshot shows the hidden bottom view without using initialSize (every thing is correctly rendered)
- Screenshot shows the initial state of the application with using initialSize
- Screenshot shows the error when the bottom view is hidden
Regards,
Stefan
Files
Updated by Stefan Ruppert almost 10 years ago
- File LayoutInitialSizeApp.cc LayoutInitialSizeApp.cc added
Hi,
attached you will find a simple test app which can be used to reproduce the error.
- Push the Hide-Button several times and the bottom view "More details" will be hidden/showed and everything is rendered fine
- Push Use InitialSize-Button once
- Now the pushing the Hide-Button will produce the layout problems...
Also the resize handle is not correctly rendered?
Regards,
Stefan
Updated by Stefan Ruppert almost 10 years ago
Hi,
any idea whats going wrong here? I would really like to see this fixed.
We plan to release a new version of our software by end of april!!
Regards,
Stefan
Updated by Koen Deforche almost 10 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
Updated by Koen Deforche almost 10 years ago
- Status changed from InProgress to Resolved
Hey,
I fixed the (two) issues:
- the resize handle (bar) is now correctly hidden for this case
- initialSize being picked up as a fixed size when there is no more resize handle controlling it's size
- removed a comment that said that the old code "wasn't entirely accurate" :-)
Thanks for the test case!
Updated by Stefan Ruppert almost 10 years ago
Hi Koen,
thanks for fixing it! Can you provide me a patch thus I can integrate it into our wt-build?
Regards,
Stefan
Updated by Koen Deforche about 9 years ago
- Status changed from Resolved to Closed
Updated by Koen Deforche about 9 years ago
- Target version changed from 3.3.4 to 3.3.5