From b6ca111c3342a6ecdf60da02b54d01083b902526 Mon Sep 17 00:00:00 2001 From: saleh Date: Wed, 11 Nov 2026 16:46:45 +0000 Subject: [PATCH] fix(layout): lock scrollWidth against plotly rtl tester svg overflow on dashboard --- dashboard.html | 34 ++++++++++++++++++++++++++++++++++ dashboards/dashboard.html | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/dashboard.html b/dashboard.html index ce2f01a..70ba720 100644 --- a/dashboard.html +++ b/dashboard.html @@ -46,6 +46,10 @@ @@ -3574,6 +3591,23 @@ }); + + // Prevent Plotly RTL tester svg from expanding scrollWidth + const plotlyFixObserver = new MutationObserver(() => { + const el = document.getElementById("js-plotly-tester"); + if (el) { + el.style.setProperty("left", "0", "important"); + el.style.setProperty("top", "0", "important"); + el.style.setProperty("position", "fixed", "important"); + el.style.setProperty("opacity", "0", "important"); + el.style.setProperty("pointer-events", "none", "important"); + el.style.setProperty("width", "1px", "important"); + el.style.setProperty("height", "1px", "important"); + el.style.setProperty("z-index", "-9999", "important"); + } + }); + plotlyFixObserver.observe(document.documentElement, { childList: true, subtree: true }); + // --- DKMall Meetings v2 JS Logic --- let talkTimeChartInstance = null; diff --git a/dashboards/dashboard.html b/dashboards/dashboard.html index ce2f01a..70ba720 100644 --- a/dashboards/dashboard.html +++ b/dashboards/dashboard.html @@ -46,6 +46,10 @@ @@ -3574,6 +3591,23 @@ }); + + // Prevent Plotly RTL tester svg from expanding scrollWidth + const plotlyFixObserver = new MutationObserver(() => { + const el = document.getElementById("js-plotly-tester"); + if (el) { + el.style.setProperty("left", "0", "important"); + el.style.setProperty("top", "0", "important"); + el.style.setProperty("position", "fixed", "important"); + el.style.setProperty("opacity", "0", "important"); + el.style.setProperty("pointer-events", "none", "important"); + el.style.setProperty("width", "1px", "important"); + el.style.setProperty("height", "1px", "important"); + el.style.setProperty("z-index", "-9999", "important"); + } + }); + plotlyFixObserver.observe(document.documentElement, { childList: true, subtree: true }); + // --- DKMall Meetings v2 JS Logic --- let talkTimeChartInstance = null;