1 <script type="text/javascript">
2 var brokenContentSize = $("#content").prop("offsetWidth") == 0;
4 function resizeContent() {
5 var content = $("#content");
6 var leftMargin = parseInt(content.css("left"));
7 var rightMargin = parseInt(content.css("right"));
8 var bottomMargin = parseInt(content.css("bottom"));
10 <% if t('html.dir') == "ltr" -%>
11 content.width($(window).width() - content.prop("offsetLeft") - rightMargin);
13 content.width($(window).width() - content.prop("offsetRight") - leftMargin);
15 content.height($(window).height() - content.prop("offsetTop") - bottomMargin);
18 function resizeMap() {
19 var sidebar_width = 0 + $("#sidebar:visible").width();
21 if (sidebar_width > 0) {
22 sidebar_width = sidebar_width + 5
25 <% if t('html.dir') == "ltr" -%>
26 $("#map").css("left", (sidebar_width) + "px");
28 $("#map").css("right", (sidebar_width) + "px");
30 $("#map").width($("#content").width() - sidebar_width);
31 $("#map").height($("#content").height() - 2);
34 function handleResize() {
35 if (brokenContentSize) {