File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments