Project

General

Profile

Bug #7230

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

Added by Marco Kinski almost 3 years ago. Updated 1 day ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/09/2019
Due date:
% Done:

0%

Estimated time:

Description

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


Files

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

Updated by Roel Standaert almost 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.

#2

Updated by Roel Standaert almost 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.

#3

Updated by Aaron Wright 1 day 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