Bug #1907
closedWHBoxLayout addStretch() does not work as expected since wt-3.3.0
0%
Description
Hi,
I have an toolbar like WHBoxLayout which uses a hbox->addStretch(1) between two widgets to seperate between left rendered and right rendered widgets.
Attached you will see the layout of wt-3.2.3 which looks quite good and a wt-3.3.0 layout which looks not so good since the labels for some input control (Tree depth and %-Filter) are not directly rendered besides the appropriate input controls.
Regards,
Stefan
Files
Updated by Stefan Ruppert over 11 years ago
The addStretch(1) added between addWidget("Options") and the second right most icon.
Updated by Stefan Ruppert over 11 years ago
Hi,
it seems to me that this is a Firefox v20/v21 problem. With Google Chrome and Opera it works as expected!
Stefan
Updated by Koen Deforche over 11 years ago
- Status changed from New to Feedback
- Assignee set to Koen Deforche
- Target version set to 3.3.1
Hey Stefan,
I would like to dig into this issue. Some more questions to put me on the right track. The issue could be specific to the combobox in Firefox20/21? It even looks wrong if you do not add stretch?
regards,
koen
Updated by Stefan Ruppert over 11 years ago
Hi Koen,
removing the addStrech(1) does not fix the problem. See the attached screenshot.
Regards,
Stefan
Koen Deforche wrote:
Hey Stefan,
I would like to dig into this issue. Some more questions to put me on the right track. The issue could be specific to the combobox in Firefox20/21? It even looks wrong if you do not add stretch?
regards,
koen
Updated by Koen Deforche over 11 years ago
- File stretch.cpp stretch.cpp added
- Priority changed from Normal to High
Hey Stefan,
I'm trying to reproduce this issue. The attached test case works well, can you see if you can modify it so that it starts misbehaving?
Regards,
koen
Updated by Stefan Ruppert over 11 years ago
- File stretch_myspin.cpp stretch_myspin.cpp added
Hi Koen,
I could reproduce the layout problem by modifiy our test case. I reduced the width of the spinbox to 50 pixel and then the layout is wrong. The problem seems to me that the layout engine within 3.3.0 uses the maximum width of the spinbox instead of the actual width. See the modified attached test case.
Stefan
Updated by Koen Deforche over 11 years ago
- File spin-stretch.png spin-stretch.png added
Hey Stefan,
This looks okay (with current git), see screenshot?
Regards,
koen
Updated by Koen Deforche about 11 years ago
- Target version changed from 3.3.1 to 3.3.2
Updated by Koen Deforche almost 10 years ago
- Status changed from Feedback to Resolved
- Target version set to 3.3.4
Updated by Koen Deforche almost 10 years ago
- Status changed from Resolved to Closed