Responsive layout, javascript element resize

(mikexvenice) #1


hypeDocument.getElementById(‘box’).style.height= ‘100px’ works fine only in fixed layout,

there’s a way to resize element with javascript in a responsive layout?

(Greg) #2

Try this…

hypeDocument.setElementProperty(element, 'height', 100)

I’m not sure why your script does not work with responsive layouts.

(mikexvenice) #3

it works! Thanks!!! :slight_smile:

(Greg) #4

btw, you can replace the word ‘element’ with your unique element ID (in your case ‘box’)