05.03.2025, 13:02
Try this:
CSS:
JS (change scrollIds array as needed):
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)
}
}