Skip to content

Commit

Permalink
Fix clock hidden at copy/paste, add block and info box wrong render
Browse files Browse the repository at this point in the history
  • Loading branch information
cavearr committed Jan 10, 2025
1 parent f92debf commit 704e2fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/scripts/graphics/joint.shapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ joint.shapes.ice.GenericView = joint.shapes.ice.ModelView.extend({
);
}
}
this.updateBox(true);
},
place: placementCssTasks,
updateBox: function (forceMutate=false) {
Expand Down Expand Up @@ -1484,7 +1485,7 @@ joint.shapes.ice.ConstantView = joint.shapes.ice.ModelView.extend({
event.stopPropagation();
});

this.updateBox();
this.updateBox(true);

this.updating = false;

Expand Down Expand Up @@ -1980,7 +1981,7 @@ joint.shapes.ice.CodeView = joint.shapes.ice.ModelView.extend({
event.stopPropagation();
});

this.updateBox();
this.updateBox(true);

this.updating = false;
this.prevZoom = 0;
Expand Down Expand Up @@ -2456,7 +2457,7 @@ joint.shapes.ice.InfoView = joint.shapes.ice.ModelView.extend({
event.stopPropagation();
});

this.updateBox();
this.updateBox(true);

this.updating = false;
this.deltas = [];
Expand Down Expand Up @@ -2657,17 +2658,18 @@ joint.shapes.ice.InfoView = joint.shapes.ice.ModelView.extend({
},

update: function () {

this.editor.setReadOnly(this.model.get("disabled"));
joint.dia.ElementView.prototype.update.apply(this, arguments);
},


updateBox: function () {
updateBox: function (forceMutate=false) {
var bbox = this.model.getBBox();
var state = this.model.get("state");
var data = this.model.get("data");

if(state.mutateZoom){
if(state.mutateZoom || forceMutate){
if (data.readonly) {
// Scale render
this.renderSelector.css({
Expand Down
1 change: 1 addition & 0 deletions app/scripts/services/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -1781,6 +1781,7 @@ function isElementInViewport(elementBBox, viewport) {
}
selection.add(cell);
selectionView.createSelectionBox(cell);
cellView.updateBox(true);
}
});
}
Expand Down

0 comments on commit 704e2fd

Please sign in to comment.