Make maximising work properly again in Potlatch

This commit is contained in:
Tom Hughes 2013-01-19 11:29:12 +00:00
parent 843051c1b2
commit e9cb282712
2 changed files with 11 additions and 18 deletions

View file

@ -1,27 +1,11 @@
function maximiseMap() { function maximiseMap() {
$("#left").hide(); $("#content").addClass("maximised");
$("#top-bar").hide();
$("#content").css("top", "0px");
if ($("html").attr("dir") == "ltr") {
$("#content").css("margin-left", "0px");
} else {
$("#content").css("margin-right", "0px");
}
handleResize(); handleResize();
} }
function minimiseMap() { function minimiseMap() {
$("#left").show(); $("#content").removeClass("maximised");
$("#top-bar").show();
$("#content").css("top", "30px");
if ($("html").attr("dir") == "ltr") {
$("#content").css("margin-left", "185px");
} else {
$("#content").css("margin-right", "185px");
}
handleResize(); handleResize();
} }

View file

@ -777,6 +777,15 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
top: 30px; top: 30px;
} }
#content.maximised {
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 0;
z-index: 1000;
}
#slim_container { #slim_container {
width: 100%; width: 100%;
} }