Bug #981
closedDifferent layout behavior in wt 3.1.10 vs 3.1.11
0%
Description
Hi,
I have a painted widget which should resize itself based on the width of the browser. The code works for 3.1.10, but does not work anymore with the git version. I'm not sure it is the correct way to accomplish this, and whether this should be considered a bug. If this is not the way I'm supposed to do this, please hint me how to do it the correct wt way.
To test this: resize your browser in the width, the painted rectangle should get resized (in height). In the git version the resizing only works when the browser is made wider, not smaller.
Code:
// works with wt 3.1.10, does not work with current git
WContainerWidget *extra_container = new WContainerWidget();
WHBoxLayout *rootlayout = new WHBoxLayout();
WContainerWidget *container= new WContainerWidget();
WVBoxLayout *containerlayout = new WVBoxLayout();
container->setLayout(containerlayout);
paint_test_widget *test = new paint_test_widget();
test->set_container_widget(container);
containerlayout->addWidget(test);
rootlayout->addWidget(container, 1);
extra_container->setLayout(rootlayout, AlignTop | AlignJustify);
extra_container->setOverflow(WContainerWidget::OverflowAuto);
root()->addWidget(extra_container);
Ill attach the paint_test_widget.
Thanx for your great framework, and the work you guys put in this!
Files
Updated by Koen Deforche over 13 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
- Target version set to 3.1.11
Hey Rob,
This was a genuine bug (and regression). Thanks for the test case.
I'll push the fix to git soon.
Regards,
koen
Updated by Rob Van Dyck over 13 years ago
Great! Thanx Koen.
Ps. Since I just saw you didn't receive any mails the last 2 days: I added the css to the 'Is it possible to use resizable or auto-sized columns in WTreeTable?' topic on the forum, as you requested.
Updated by Rob Van Dyck over 13 years ago
And I also added some feedback to #973.
Updated by Koen Deforche about 13 years ago
- Status changed from Resolved to Closed
Resolved in Wt 3.1.11