Commit ff4d4a3d authored by Andrea Aime's avatar Andrea Aime
Browse files

[GEOS-9022] geoserver Style page, after expand button, html brokes

parent f89319a3
$( document ).ready(function() {
var fullscreen = false;
var editorDefault = 300;
var previewDefault = 300;
......@@ -47,7 +47,13 @@ $( document ).ready(function() {
var img = $("#fullscreen-img");
var page = $("#page");
var pagePane = $("#page-pane");
document.documentElement.style.overflow = "hidden";
fullscreen = !fullscreen;
if (!fullscreen) {
document.documentElement.style.overflow = "unset";
} else {
document.documentElement.style.overflow = "hidden";
}
img.toggleClass("fullscreen-image-in")
page.toggleClass("fullscreen");
pagePane.toggleClass("page-pane-fullscreen");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment