This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Usermode view
#21
(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...
Reply
#22
Can't reproduce this scroll issue. Send me your backup via PM.
Reply


Forum Jump: