From 98fba1e08fde04cafa93f65cc2ff536c1cf71adb Mon Sep 17 00:00:00 2001 From: Sergey Linev Date: Mon, 7 Oct 2024 17:26:29 +0200 Subject: [PATCH] Build with hist title height fix --- build/jsroot.js | 4 ++-- changes.md | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build/jsroot.js b/build/jsroot.js index 127ffc643..9696924a6 100644 --- a/build/jsroot.js +++ b/build/jsroot.js @@ -73537,10 +73537,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 ba546bbe8..f732fe054 100644 --- a/changes.md +++ b/changes.md @@ -36,6 +36,8 @@ 33. Fix - properly redraw TMultiGraph 34. Fix - show empty bin in TProfile2D if it has entries #316 35. Fix - unzooming on log scale was extending range forevever +36. Fix - do not force style 8 for hist markers +37. Fix - ensure minimal hist title height ## Changes in 7.7.4