Logic Machine Forum
Vertical Scroll on DIV - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Vertical Scroll on DIV (/showthread.php?tid=3554)



Vertical Scroll on DIV - jmir - 13.09.2021

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


RE: Vertical Scroll on DIV - admin - 14.09.2021

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');



RE: Vertical Scroll on DIV - jmir - 14.09.2021

(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?


RE: Vertical Scroll on DIV - admin - 14.09.2021

It has been like this from the start, not sure why it worked in older firmware.


RE: Vertical Scroll on DIV - jmir - 14.09.2021

(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!