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;