Project

General

Profile

Actions

Bug #7230

open

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

Added by Marco Kinski over 4 years ago. Updated over 1 year 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
Actions #1

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

Actions #2

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

Actions #3

Updated by Aaron Wright over 1 year 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.

Actions

Also available in: Atom PDF