Skip to content

Commit

Permalink
fix RatioNode.setVisible, #187
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jul 27, 2020
1 parent 63abc81 commit 8b5d58e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/common/view/RatioNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,10 @@ class RatioNode extends Node {
* @override
*/
setVisible( visible ) {
const doUpdate = visible && !this.visible;
super.setVisible.call( this, visible );
if ( doUpdate ) { this.update(); }
super.setVisible( visible );
if ( visible ) {
this.update();
}
}

/**
Expand Down

0 comments on commit 8b5d58e

Please sign in to comment.