Bug #5314
closedA WStackedWidget in a layout can receive incorrect height after animation
0%
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
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.
Updated by Bruce Toll over 7 years ago
- File 0002-Retain-height-for-WStackedAnimation-fade-in-layout.patch 0002-Retain-height-for-WStackedAnimation-fade-in-layout.patch added
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.
Updated by André Jacobs over 7 years ago
- Status changed from New to InProgress
- Assignee set to André Jacobs
Updated by André Jacobs over 7 years ago
- Status changed from InProgress to Implemented @Emweb
Updated by Roel Standaert over 7 years ago
- Status changed from Implemented @Emweb to Resolved
Updated by Roel Standaert about 7 years ago
- Status changed from Resolved to Closed