Different layout behavior in wt 3.1.10 vs 3.1.11
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.
// 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();
paint_test_widget *test = new paint_test_widget();
extra_container->setLayout(rootlayout, AlignTop | AlignJustify);
Ill attach the paint_test_widget.
Thanx for your great framework, and the work you guys put in this!