Skip to content

Commit 16c7d22

Browse files
committed
Build with title height fix
1 parent 3d77403 commit 16c7d22

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build/jsroot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72668,10 +72668,10 @@ class TPavePainter extends ObjectPainter {
7266872668
} else if ((opt === 'postitle') || painter.isDummyPos(pave)) {
7266972669
const st = gStyle, fp = painter.getFramePainter();
7267072670
if (st && fp) {
72671-
const midx = st.fTitleX, y2 = st.fTitleY;
72671+
const midx = st.fTitleX, y2 = st.fTitleY, fsz = st.fTitleFontSize;
7267272672
let w = st.fTitleW, h = st.fTitleH;
7267372673

72674-
if (!h) h = (y2 - fp.fY2NDC) * 0.7;
72674+
if (!h) h = Math.max((y2 - fp.fY2NDC) * 0.7, (fsz < 1) ? 1.1 * fsz : 1.1 * fsz / fp.getFrameWidth());
7267572675
if (!w) w = fp.fX2NDC - fp.fX1NDC;
7267672676
if (!Number.isFinite(h) || (h <= 0)) h = 0.06;
7267772677
if (!Number.isFinite(w) || (w <= 0)) w = 0.44;

changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
1. Fix - can enable exponent only for log10 axis scale
55
2. Fix - proper set custom font size in latex
66
3. Fix - do not force style 8 for hist markers
7+
4. Fix - ensure minimal hist title height
78

89

910
## Changes in 7.7.4

0 commit comments

Comments
 (0)