Skip to content

Commit

Permalink
[bug] fix calculation of groups with mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyLuzyanin committed Feb 7, 2024
1 parent ca06e22 commit 6393d9f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions common/Drawings/Format/GroupShape.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,18 @@
}
};

CGroupShape.prototype.handleUpdateExtents = function() {
this.recalcTransform();
for(let nSp = 0; nSp < this.spTree.length; ++nSp) {
this.spTree[nSp].handleUpdateExtents();
}
if(!this.group) {
if(this.addToRecalculate) {
this.addToRecalculate();
}
}
};

CGroupShape.prototype.copy = function (oPr) {
var copy = new CGroupShape();
this.copy2(copy, oPr);
Expand Down

0 comments on commit 6393d9f

Please sign in to comment.