hypeDocument.getElementById('box').style.height= '100px' works fine only in fixed layout,
hypeDocument.setElementProperty(element, 'height', 100)
I'm not sure why your script does not work with responsive layouts.
it works! Thanks!!!
btw, you can replace the word 'element' with your unique element ID (in your case 'box')