Skip to content

Commit

Permalink
Fix Icon overlay for right icon Issue #187
Browse files Browse the repository at this point in the history
  • Loading branch information
toxophilist committed Nov 26, 2020
1 parent 09aaa41 commit 19a141b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion okitweb/static/okit/view/js/okit_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ class OkitArtefactView {
}
// --- Dimensions
get recalculate_dimensions() {return this._recalculate_dimensions;}
set recalculate_dimensions(recalculate) {this._recalculate_dimensions = true; this.parent ? this.parent.recalculate_dimensions = true : recalculate = false;}
set recalculate_dimensions(recalculate) {this._recalculate_dimensions = true;this.parent ? this.parent.recalculate_dimensions = true : recalculate = false;}
get width_multiplier() {return this.show_label ? okitSettings.show_label === 'name' ? 1.5 : 2 : 1;}
get height_multiplier() {return this.show_label ? 1.5 : 1;}
get icon_dimensions() {return {width: this.icon_width, height: this.icon_height};}
Expand Down Expand Up @@ -2365,6 +2365,7 @@ class OkitContainerArtefactView extends OkitArtefactView {
const self = this;
icon.on("click", function() {
self.collapsed = !self.collapsed;
self.recalculate_dimensions = true;
self.getJsonView().draw();
});
}
Expand Down

0 comments on commit 19a141b

Please sign in to comment.