Make maximising work properly again in Potlatch
This commit is contained in:
parent
843051c1b2
commit
e9cb282712
2 changed files with 11 additions and 18 deletions
|
@ -1,27 +1,11 @@
|
|||
function maximiseMap() {
|
||||
$("#left").hide();
|
||||
$("#top-bar").hide();
|
||||
|
||||
$("#content").css("top", "0px");
|
||||
if ($("html").attr("dir") == "ltr") {
|
||||
$("#content").css("margin-left", "0px");
|
||||
} else {
|
||||
$("#content").css("margin-right", "0px");
|
||||
}
|
||||
$("#content").addClass("maximised");
|
||||
|
||||
handleResize();
|
||||
}
|
||||
|
||||
function minimiseMap() {
|
||||
$("#left").show();
|
||||
$("#top-bar").show();
|
||||
|
||||
$("#content").css("top", "30px");
|
||||
if ($("html").attr("dir") == "ltr") {
|
||||
$("#content").css("margin-left", "185px");
|
||||
} else {
|
||||
$("#content").css("margin-right", "185px");
|
||||
}
|
||||
$("#content").removeClass("maximised");
|
||||
|
||||
handleResize();
|
||||
}
|
||||
|
|
|
@ -777,6 +777,15 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
|
|||
top: 30px;
|
||||
}
|
||||
|
||||
#content.maximised {
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
border: 0;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
#slim_container {
|
||||
width: 100%;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue