Project

General

Profile

Actions

Bug #7082

open

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

Added by Bruce Toll almost 5 years ago. Updated almost 5 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

Actions #1

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

Actions

Also available in: Atom PDF