Bug #7082
openRegression WStackedWidget in layout with overflow can lose scrollbar on animated transition
0%
Description
With github wt 4.0.5-52-ge490cdd9, a WStackedWidget in a layout can lose scrollbars on animated transitions. I believe this is a regression introduced in 4.0.5-8-gf933d073 while fixing #6788.
The attached test program demonstrates the issue. Press the button to toggle the WStackedWidget between two containers with text. On the second toggle, the scrollbar will disappear.
The issue will not occur if the transition animation is disabled or if the WStackedWidget.js change in 4.0.5-8-gf933d073 is reverted.
Partially reverting the patch in 4.0.5-8-gf933d073 seems to address this issue, while still maintaining correct behavior for the wt-homepage issue reported in #6788. I'm not sure if that's the best fix, but I've attached a patch for your review.
Files
Updated by Roel Standaert over 5 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
It also bothers me that you need to set the top layout's preferred implementation to JavaScript in order to make the scrollbar appear in the first place. That's something that also should be taken care of.