LogicMachine Forum
Usermode view - Printable Version

+- LogicMachine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: OLD visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Usermode view (/showthread.php?tid=5624)

Pages: 1 2


RE: Usermode view - jmir - 10.03.2025

(06.03.2025, 15:05)admin Wrote: You need to replace only the doShowPlan function not the whole JS code. Complete JS should look like this:
Code:
var origDoShowPlan = window.doShowPlan if (origDoShowPlan) {   var scrolIds = [2, 3, 4]     $(function() {     scrolIds.forEach(function(id) {       $('#plan-' + id).addClass('layer-centered-h')     })   })   doShowPlan = function(plan) {     visAutoWidth = scrolIds.indexOf(currentPlanId) >= 0     $('.layers').css('overflow-y', visAutoWidth ? 'auto' : 'hidden');     origDoShowPlan(plan)   } }

Ok, now I can switch between plans but the behaviour is the same than using the other code... if I don't open any widget it works fine, but after openning a widget scroll bar appears to non scrollable plans...

As a workaround we've forced a page reload when a widget is closed... It's not the best way but it's the only one we've found to avoid it...


RE: Usermode view - admin - 10.03.2025

Can't reproduce this scroll issue. Send me your backup via PM.