Project

General

Profile

Bug #1643

WStackedWidget with animation fails on setCurrentIndex() when previous animation/transition is not yet complete

Added by Anonymous almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
01/24/2013
Due date:
% Done:

0%

Estimated time:

Description

The display is not updated to reflect the internal state of WStackedWidget if setCurrentIndex() is called while an animation from a previous setCurrentIndex() is ongoing. I believe that the problem is related to visibility of animateChild(). For the affected application, this patch to Wt 3.2.3 seemed to work:

diff -u a/src/js/WStackedWidget.js b/src/js/WStackedWidget.js
--- a/src/js/WStackedWidget.js
+++ b/src/js/WStackedWidget.js
@@ -190,7 +190,7 @@ WT_DECLARE_WT_MEMBER
       */
      if ($(from).hasClass("in")) {
        $(from).one(animationEventEnd, function() {
-          animateChild(child, effects, timing, duration, style);
+          Wt.WT.WStackedWidget.prototype.animateChild(child, effects, timing, duration, style);
         });
        return;
      }

Also available in: Atom PDF