Bug #1521
closedwt 3.2.3 WVBoxLayout issue
0%
Description
Hi,
another layout issue I encountered within the WVBoxLayout implementation. I have several rows using a WVBoxLayout. The last vbox row is resizeable. If I hide the containing widget in the last vbox row, the widget is hidden and the additional space is correctly setup to the vbox row with a stretch factor.
But if I change to height of the last vbox row by dragging the appropriate border. A following hide of the containing widget screws up the layout.
Attached you will find the test application which reproduces this problem. Hit apply to hide/show the widget of the last vbox row.
Files
Updated by Stefan Ruppert about 12 years ago
- File Wt-WVBoxLayout.png Wt-WVBoxLayout.png added
- File Wt-WVBoxLayout-ok.png Wt-WVBoxLayout-ok.png added
- File Wt-WVBoxLayout-wrong.png Wt-WVBoxLayout-wrong.png added
Added screenshots
Updated by Koen Deforche about 12 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
Hey Stefan,
I've made progress on fixing this issue: it works for your test case but I believe the problem isn't yet solved in its most general case (where resize handles become irrelevant when certain widgets are being hidden).
Nevertheless, I'm going to commit this already to git some time later today or tomorrow, since it certainly is no step backwards either.
Regards,
koen
Updated by Peter K about 12 years ago
Hi Koen,
Somewhat off topic, but could WHBoxLayout have the same issue? I saw some incorrect horizontal layout behavior that's similar to the problem described here. If it's related, you might kill two bugs with one stone, so to speak!
Thanks,
Peter
Updated by Koen Deforche about 12 years ago
Hey Peter,
Yes, this is entirely symmetrical and the same code, so it could be solved too (although as I said, I didn't really solve it yet in its most general case).
I still haven't pushed my changes to the public git but will do so by the end of the week !
Regards,
koen
Updated by Stefan Ruppert almost 12 years ago
Hi Koen,
I still haven't pushed my changes to the public git but will do so by the end of the week !
Can you push these changes to the public git repo? I want to test your fix.
Regards,
Stefan
Updated by Koen Deforche almost 12 years ago
- Status changed from Resolved to Closed
- Target version set to 3.3.0