Project

General

Profile

Actions

Bug #13082

closed

WStackedWidget::setCurrentIndex does not correctly propagate visibility

Added by Matthias Van Ceulebroeck 4 months ago. Updated 6 days ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
10/03/2024
Due date:
% Done:

100%

Estimated time:

Description

When initially loading a WStackedWidget, all the content is set to a hidden state, with only the first item being visible.
Upon selecting a different index, that widget is made visible, and the previous one is hidden.

Now, on initially loading it may happen that with more complex content (e.g. an additional (StdGrid) layout manager), the content is not all propagated correctly to become visible.
This is only the case the first time the widget is loaded. Once it is made hidden and then visible again, it does correctly show.
Seemingly this happens because StdGridLayoutImpl2::createElement()/ StdWidgetItemImpl::createDomElement() sets the visibility:hidden attribute. This is not correctly removed when the item's parent is set as the current active widget.

The same issue is present with a WMenu holding the same content in its stack if it is loaded eagerly.

A minimal example can be found here:

StackApplication

Actions #1

Updated by Romain Mardulyn 3 months ago

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn
Actions #2

Updated by Romain Mardulyn 3 months ago

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)
Actions #3

Updated by Matthias Van Ceulebroeck 16 days ago

  • Assignee set to Matthias Van Ceulebroeck
Actions #4

Updated by Matthias Van Ceulebroeck 15 days ago

  • Status changed from Review to Implemented @Emweb
  • Assignee changed from Matthias Van Ceulebroeck to Romain Mardulyn
  • % Done changed from 0 to 100
Actions #5

Updated by Matthias Van Ceulebroeck 6 days ago

  • Status changed from Implemented @Emweb to Implemented @Test
Actions #6

Updated by Matthias Van Ceulebroeck 6 days ago

  • Status changed from Implemented @Test to Closed
Actions

Also available in: Atom PDF