Project

General

Profile

Bug #7082

Regression WStackedWidget in layout with overflow can lose scrollbar on animated transition

Added by Bruce Toll over 2 years ago. Updated over 2 years ago.

Status:
InProgress
Priority:
Normal
Assignee:
Target version:
-
Start date:
06/07/2019
Due date:
% Done:

0%

Estimated time:

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

#1

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

Also available in: Atom PDF