Project

General

Profile

Actions

Bug #981

closed

Different layout behavior in wt 3.1.10 vs 3.1.11

Added by Rob Van Dyck over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
09/07/2011
Due date:
% Done:

0%

Estimated time:

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

paint_test_widget.h (478 Bytes) paint_test_widget.h Rob Van Dyck, 09/07/2011 06:28 PM
paint_test_widget.cpp (1.11 KB) paint_test_widget.cpp Rob Van Dyck, 09/07/2011 06:28 PM
Actions #1

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

Actions #2

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.

Actions #3

Updated by Rob Van Dyck over 13 years ago

And I also added some feedback to #973.

Actions #4

Updated by Koen Deforche about 13 years ago

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: Atom PDF