diff --git a/build/jsroot.js b/build/jsroot.js index a3198f709..c9f4cec60 100644 --- a/build/jsroot.js +++ b/build/jsroot.js @@ -72668,10 +72668,10 @@ class TPavePainter extends ObjectPainter { } else if ((opt === 'postitle') || painter.isDummyPos(pave)) { const st = gStyle, fp = painter.getFramePainter(); if (st && fp) { - const midx = st.fTitleX, y2 = st.fTitleY; + const midx = st.fTitleX, y2 = st.fTitleY, fsz = st.fTitleFontSize; let w = st.fTitleW, h = st.fTitleH; - if (!h) h = (y2 - fp.fY2NDC) * 0.7; + if (!h) h = Math.max((y2 - fp.fY2NDC) * 0.7, (fsz < 1) ? 1.1 * fsz : 1.1 * fsz / fp.getFrameWidth()); if (!w) w = fp.fX2NDC - fp.fX1NDC; if (!Number.isFinite(h) || (h <= 0)) h = 0.06; if (!Number.isFinite(w) || (w <= 0)) w = 0.44; diff --git a/changes.md b/changes.md index 8b87cb5d1..6fe50cd9e 100644 --- a/changes.md +++ b/changes.md @@ -4,6 +4,7 @@ 1. Fix - can enable exponent only for log10 axis scale 2. Fix - proper set custom font size in latex 3. Fix - do not force style 8 for hist markers +4. Fix - ensure minimal hist title height ## Changes in 7.7.4