Hi all,
I am trying to automatically enter the browser's fullscreen mode when maximizing a jquery dialog which is extended with dialogExtend.
I do this by having the following code within the "beforeMaximize" callback:
"beforeMaximize": function () {
//alert("before");
this.openFullScreen();
}.bind(this)
where openFullscreen is like this:
private openFullScreen() {
this.isInFullScreen = true;
var elem = document.body;
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem.mozRequestFullScreen) { /* Firefox */
elem.mozRequestFullScreen();
} else if (elem.webkitRequestFullscreen) { /* Chrome, Safari and Opera */
elem.webkitRequestFullscreen();
} else if (elem.msRequestFullscreen) { /* IE/Edge */
elem.msRequestFullscreen();
}
}
Entering the browser's fullscreen mode works fine - but the resulting jquery dialog does not extend to the full available height.
Why is the dialogExtend maximize function not recognizing the correct height?
How to set jQuery Dialog to full available height in maximize event?
With kind regards,
John