Skip to content

Commit 5fd5315

Browse files
committed
Ensure minimal size for interactive zooming area
1 parent 824cffe commit 5fd5315

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
@@ -1136,7 +1136,7 @@ class TAxisPainter extends ObjectPainter {
11361136
labelMaxWidth = arr[1];
11371137

11381138
if (settings.Zooming && !this.disable_zooming && !isBatchMode()) {
1139-
let labelSize = arr[0],
1139+
let labelSize = Math.max(arr[0], 5),
11401140
r = axis_g.append("svg:rect")
11411141
.attr("class", "axis_zoom")
11421142
.style("opacity", "0")

0 commit comments

Comments
 (0)