hypeDocument.setCurrentSceneHeight
Sets the current scene height. Beware to do this it need to set the hypeDocument height as well so you should reset scene height on scene changes if you wish to the restore initial state.
/**
* hypeDocument.setCurrentSceneHeight v1.0
* @param {Number} height to set the scene element to
*/
hypeDocument.setCurrentSceneHeight = function ( height) {
var sceneElm = document.getElementById(this.currentSceneId());
sceneElm.parentElement.style.height = height;
sceneElm.style.height = height;
}
Usage:
hypeDocument.setCurrentSceneHeight( '1000px' );
setCurrentSceneHeight.hype.zip (272,0 KB)
Update: This was updated on 11. September 2020