We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5040929 commit bd29c06Copy full SHA for bd29c06
scripts/JSRootPainter.js
@@ -1216,7 +1216,11 @@
1216
var sz1 = this.main_visible_rect();
1217
this.enlarge_main('toggle');
1218
var sz2 = this.main_visible_rect();
1219
- var res = (sz1.height>=sz2.height) && (sz1.width>=sz2.width);
+ var res = (sz1.height>10) && (sz1.width>20) &&
1220
+ (((sz1.height>=sz2.height) && (sz1.width>=sz2.width)) ||
1221
+ ((sz1.height>1.5*sz2.height) && (sz1.width>=0.9*sz2.width)) ||
1222
+ ((sz1.height>0.9*sz2.height) && (sz1.width>1.5*sz2.width)));
1223
+
1224
main.property('can_enlarge', res);
1225
return res;
1226
}
0 commit comments