please take the unminified code from @MaxZieb's last post above and add a
console.log(newHeight)
right before
hypeDocument.relayoutIfNecessary();
if the logged height is the expected height, but the output in the browser is not ... it might then be a timing-issue ... means Hype overwrites the height set by the script ...
feel free to attach the hypefile for further investigations ...