Bug #13082
closedWStackedWidget::setCurrentIndex does not correctly propagate visibility
100%
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:
Updated by Romain Mardulyn 3 months ago
- Status changed from New to InProgress
- Assignee set to Romain Mardulyn
Updated by Romain Mardulyn 3 months ago
- Status changed from InProgress to Review
- Assignee deleted (
Romain Mardulyn)
Updated by Matthias Van Ceulebroeck 16 days ago
- Assignee set to Matthias Van Ceulebroeck
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
Updated by Matthias Van Ceulebroeck 6 days ago
- Status changed from Implemented @Emweb to Implemented @Test
Updated by Matthias Van Ceulebroeck 6 days ago
- Status changed from Implemented @Test to Closed