Skip to content

Bug? When enter browser fullscreen in the beforeMaximize event, height of dialog is not adjusted to full height within the maximize action #36

@JohnRanger

Description

@JohnRanger

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions