Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1061660 - Fix some missing show transitions on BaseUI elements. r…
Browse files Browse the repository at this point in the history
…=alive

Flush the style after element creation so that animations associated with
the visible class play.
  • Loading branch information
Cwiiis authored and rvandermeulen committed Oct 10, 2014
1 parent 18509d6 commit 3cb034a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/system/js/base_ui.js
Expand Up @@ -26,6 +26,11 @@
this.containerElement.insertAdjacentHTML('afterbegin', this.view());
this._fetchElements();
this._registerEvents();
if (this.element) {
// Force a style flush so that if the UI is immediately shown, any
// transition associated with the visible class will play.
this.element.clientTop;
}
this.publish('rendered');
};

Expand Down

0 comments on commit 3cb034a

Please sign in to comment.