I hope I make myself understandable this time:
I’m using a JqxTree which is created on-demand. The way I populate the tree is giving the nodes one by one to a parent node. If I scroll up and down the tree or left and right it shows me a blank space. I found a solution that seems to work in the vertical scroll, but not the horizontal scroll. As shown in this image: https://drive.google.com/open?id=1rrAtGLyRuYp1mr1i0OP1eBU94tIqoMwx
The solution is removing the height
, the width
and the ax-width
styles from everywhere I find an element that starts with panelContentpaneljqxTree
in the DOM. Like this:
window.$('div[id^="panelContentpaneljqxTree"]').css({'height': '', 'width': '', 'max-width': ''});
The max-width
style keeps showing. Now, if I do this:
setInterval(() => {
window.$('div[id^="panelContentpaneljqxTree"]').css({'height': '', 'width': '', 'max-width': ''});
}, 1000);
It solves the problem, but I think to use setInterval in this case is discouraged. So, how can I avoid this to happen?