Project

General

Profile

Actions

Bug #5314

closed

A WStackedWidget in a layout can receive incorrect height after animation

Added by Bruce Toll over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
10/01/2016
Due date:
% Done:

0%

Estimated time:

Description

With github Wt 3.3.6-6-gbadb151, a WStackedWidget that uses fade animation can be set (restored) to an incorrect height at the end of the animation.

The attached test program demonstrates the issue by changing the index on a WStackedWidget to display a WContainerWidget with content that exceeds its natural size. With a non-animated transition, the height is set correctly and a scroller appears. With a fade animation, the height is initially set correctly (by the layout), but when the animation completes, the height is removed and the content extends beyond the window and is no longer scrollable.

A small patch is also attached for your review. The patch eliminates the height update (restore) when a fade-only animation completes. There are additional notes on the patch.


Files

Actions #1

Updated by Bruce Toll over 7 years ago

In further testing, I found that the patch does not work as intended when the WStackedWidget is not in a Layout. I will try to look into it further and follow-up.

Actions #2

Updated by Bruce Toll over 7 years ago

I've attached an updated patch that addresses the situation where the WStackedWidget is not in a Layout. In my limited testing, the patch seems to work. However, a more comprehensive approach would probably result in a better solution.

Actions #3

Updated by André Jacobs over 7 years ago

  • Status changed from New to InProgress
  • Assignee set to André Jacobs
Actions #4

Updated by André Jacobs over 7 years ago

  • Status changed from InProgress to Implemented @Emweb
Actions #5

Updated by Roel Standaert over 7 years ago

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

Updated by Roel Standaert about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF