Skip to content

Commit e8ccca2

Browse files
committed
build
1 parent 5c791b4 commit e8ccca2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build/jsroot.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8274,6 +8274,12 @@ class BasePainter {
82748274
if (rect.changed)
82758275
main.property('_jsroot_height', rect.height).property('_jsroot_width', rect.width);
82768276

8277+
// after change enlarge state always mark main element as resized
8278+
if (main_origin.property('did_enlarge')) {
8279+
rect.changed = true;
8280+
main_origin.property('did_enlarge', false);
8281+
}
8282+
82778283
return rect;
82788284
}
82798285

@@ -8328,7 +8334,7 @@ class BasePainter {
83288334
enlarge.node().appendChild(main.node().firstChild);
83298335

83308336
origin.property('use_enlarge', true);
8331-
8337+
origin.property('did_enlarge', true);
83328338
return true;
83338339
}
83348340
if ((action === false) && (state !== 'off')) {
@@ -8338,6 +8344,7 @@ class BasePainter {
83388344

83398345
enlarge.remove();
83408346
origin.property('use_enlarge', false);
8347+
origin.property('did_enlarge', true);
83418348
return true;
83428349
}
83438350

0 commit comments

Comments
 (0)