I am working on a plugin that results in changing/dynamic element heights. these change semi-frequently.
having the entire element wrapped in the ‘out’ div i use this code to recursively set the element height
setTimeout(function(){
let el = document.getElementById('out')
setInterval(function(){
console.log(el.getBoundingClientRect().height )
instance.setHeight(el.getBoundingClientRect().height)
}, 500);
},500)
however when i try to use this same code in the preview function for the visual builder, i see the element and get the visual effect BUT the element does not change height.
in the responsive editor it trys to change height but only does so once or twice then blinks only and stops changing height.
has anyone else experienced this?