Skip to content

Commit 7974c50

Browse files
committed
Do not scale fMaximum of the THStack
Leads to constant scaling when canvas is updated
1 parent 21ef3cd commit 7974c50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hist/THStackPainter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class THStackPainter extends ObjectPainter {
144144
let max0 = max, min0 = min, zoomed = false;
145145

146146
if (stack.fMaximum != kNoZoom) {
147-
max = stack.fMaximum*(1 + gStyle.fHistTopMargin);
147+
max = stack.fMaximum;
148148
max0 = Math.max(max, max0);
149149
zoomed = true;
150150
}

0 commit comments

Comments
 (0)