Skip to content

Commit fc80262

Browse files
committed
Fix - better size for zooming area
1 parent f59fb1c commit fc80262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/gpad/TAxisPainter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ class TAxisPainter extends ObjectPainter {
12661266
.style('cursor', 'crosshair');
12671267

12681268
if (this.vertical) {
1269-
const rw = (labelsMaxWidth || 2*labelSize) + 3;
1269+
const rw = Math.max(labelsMaxWidth, 2*labelSize) + 3;
12701270
r.attr('x', (side > 0) ? -rw : 0).attr('y', 0)
12711271
.attr('width', rw).attr('height', h);
12721272
} else {

0 commit comments

Comments
 (0)