Aligning a footer to the bottom of a responsive canvas without it being cropped
I'm working on a project with a responsive html5 canvas which will have an animation to fill the whole browser, but have a menu bar across the bottom (and other UI aligned to the left and right).
I have set publish settings to 'Make Responsive' = Both, and 'Scale to fill visible area' = Stretch to fit.
The problem is that these setting often crop the top and bottom of the stage, which is fine for the animated content, but not for the UI.
The stage is 1920x1080, and aligning to 1080px most of the time works fine, but in some browser sizes, when the content is cropped, it won't show.

Left in blue I have text output from a few options to get browser and canvas height, the red lines show the y of the stage.
In this example, I can see I would need to put the footer at y=800, but cannot see where I can get that value dynamically.
The test is here
staging.lachlandean.com/test/AnimateCC/FindBottom/findBottom.html
this.stop();
_this = this;
createjs.Ticker.addEventListener("tick", handleTick);
function handleTick(event) {
_this.t1.text = "getHeight1: "+ getHeight1();
_this.t2.text = "getHeight2: "+getHeight2();
_this.t3.text = "getHeight3: "+getHeight3();
_this.t4.text = "getHeight4: "+getHeight1();
_this.t5.text = "getHeight5: "+getHeight2();
}
function getHeight1() {
return window.innerHeight;
}
function getHeight2() {
return Math.max(
document.body.scrollHeight,
document.documentElement.scrollHeight,
document.body.offsetHeight,
document.documentElement.offsetHeight,
document.documentElement.clientHeight
);
}
function getHeight3() {
return stage.canvas.height / window.devicePixelRatio;
}
function getHeight4() {
return canvas.getAttribute('height') / window.devicePixelRatio;
}
function getHeight5() {
return canvas.getAttribute('height') / window.devicePixelRatio;
}
var i;
for (i = 0; i < 30; i++) {
var testBox = new lib.testBox();
_this.addChild(testBox);
testBox.y=50*i;
testBox.test_txt.text = testBox.y
testBox.x=1000
}