06.03.2025, 14:00
(05.03.2025, 13:02)admin Wrote: Try this:
CSS:
Code:.layers { overflow-y: auto; } .layer-centered-h { margin-top: 0 !important; }
JS (change scrollIds array as needed):
Code:var origDoShowPlan = window.doShowPlan if (origDoShowPlan) { var scrollIds = [2, 3, 4] $(function() { scrollIds.forEach(function(id) { $('#plan-' + id).addClass('layer-centered-h') }) }) doShowPlan = function(plan) { visAutoWidth = scrollIds.indexOf(currentPlanId) >= 0 origDoShowPlan(plan) } }
Hi, I've done some tests and it works if don't open any widget... When I do it (inside a scrollable plan) then scrollbar appears on non-scrollable plans...