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.

Vertical Scroll on DIV
#1
Hi,

I'm trying to insert a scrollable DIV on a plan. Inside it, there is a table which can vertically overflow (depending on the number of lines in the table).
In older firmwares I'm using this code and it's working:

Code:
var quadre = $("<div id='requadre'></div>").css({
      position: 'relative',
      width: 1800, height: 800,
      top: 70,  left: 100,
      border: '1px solid white',
      overflow: 'auto',
      background: 'black',
  }).appendTo('#plan-59');

In newer firmwares, the scroll bar appers but it seems disabled...

Any idea about what can be happening?
Thanks
Reply
#2
Add pointer-events: all to the CSS properties:
Code:
var quadre = $("<div id='requadre'></div>").css({
      position: 'relative',
      width: 1800, height: 800,
      top: 70,  left: 100,
      border: '1px solid white',
      overflow: 'auto',
      background: 'black',
      'pointer-events': 'all'
  }).appendTo('#plan-59');
Reply
#3
(14.09.2021, 07:27)admin Wrote: Add pointer-events: all to the CSS properties:
Code:
var quadre = $("<div id='requadre'></div>").css({
      position: 'relative',
      width: 1800, height: 800,
      top: 70,  left: 100,
      border: '1px solid white',
      overflow: 'auto',
      background: 'black',
      'pointer-events': 'all'
  }).appendTo('#plan-59');

Ok, now it works!
It's something that has been changed in new firmware?
Reply
#4
It has been like this from the start, not sure why it worked in older firmware.
Reply
#5
(14.09.2021, 07:54)admin Wrote: It has been like this from the start, not sure why it worked in older firmware.

Ok, thanks!
Reply


Forum Jump: