Skip to content

Commit

Permalink
Fixing attire first time glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
afska committed May 18, 2018
1 parent 75aafb1 commit 7bdd6c2
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions app/elements/boards-panel/boards-panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -723,13 +723,22 @@ <h2>[[localize("boom")]]</h2>

_setFinalState: function(finalState) {
const firstTime = !this.finalState;

this.set("finalState", finalState);
this._setSelectedTab(1);

setTimeout(() => {
const draw = () => {
this.$$("#finalStateEditor").update(finalState.table, finalState.header);
if (firstTime) this._updateBoardStyles();
}, 1);
};

setTimeout(() => {
draw();

if (firstTime) {
this._updateBoardStyles();
setTimeout(draw);
}
});
},

_onBoardChanged: function(event) {
Expand Down

0 comments on commit 7bdd6c2

Please sign in to comment.