Bug #7230

Wt4, WVBoxLayout->setResizable not working, children not visible

Added by Marco Kinski about 3 years ago. Updated 4 months ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


When using flex layout implementation the widgets inside the corresponding layout are not visible.


main.cpp (1.38 KB) main.cpp Marco Kinski, 09/09/2019 09:43 PM

Updated by Roel Standaert about 3 years ago

  • Status changed from New to Confirmed

That's interesting. Making a layout resizable should actually make it switch to using JavaScript automatically, since that feature is simply not supported with the flexbox implementation.


Updated by Roel Standaert about 3 years ago

I see what's going on:

  1. Before the widgets are added, the box layout assumes flex layout implementation
  2. The widgets are added, and will create a flex layout item as their implementation
  3. A row is made resizable, causing the box layout to switch to the JavaScript-based layout implementation, but:
  4. The implementation of the items remains the same, and is not updated to the JavaScript-based layout item implementation

The issue does not happen when the JavaScript implementation is set before the widgets are added, or before the layout is added to a container. It is thus dependent on the order in which you do things.

We'll have to figure out how to best solve this.


Updated by Aaron Wright 4 months ago

I ran into this today. It was quite confusing, so I thought I'd leave my vote to get a fix in for this.

Also available in: Atom PDF