X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/82d463191442b0931e0c51c0cf4c2ef1383b400b..0e81def27bfaa36288143d1ff4c325164d4d2f10:/project/templates/explorer/file_xml.html?ds=sidebyside diff --git a/project/templates/explorer/file_xml.html b/project/templates/explorer/file_xml.html index b78e3dee..54583e57 100644 --- a/project/templates/explorer/file_xml.html +++ b/project/templates/explorer/file_xml.html @@ -2,7 +2,6 @@ {% load toolbar_tags %} {% block extrahead %} - @@ -18,22 +17,12 @@ function resizePanels() { $('iframe').width($(window).width() - $('#sidebar').outerWidth()); - $('iframe').height($(window).height() - 100); - $('#images-wrap, #toggle-sidebar').height($(window).height() - 100); - $('#images-wrap').width($('#sidebar').width() - 8); + $('iframe').height($(window).height() - $('#breadcrumbs').height() - $('toolbar').height()); + $('#toggle-sidebar').height($(window).height() - $('#breadcrumbs').height()); + $('#images-wrap').height($(window).height() - $('#breadcrumbs').height() - $('#sidebar-toolbar').height()) + $('#images-wrap, #sidebar-toolbar').width($('#sidebar').width() - 10); } - $('#toggle-sidebar').toggle(function() { - $('#images-wrap').width(480); - $('#sidebar').width(488); - $('#images-wrap').data('lazyload:lastCheckedScrollTop', -10000); - resizePanels(); - }, function() { - $('#images-wrap').width(0); - $('#sidebar').width(8); - resizePanels(); - }) - $(window).resize(function() { resizePanels(); }) @@ -89,7 +78,8 @@ return event.ctrlKey && keys[event.keyCode]; }); - // $('#sidebar').bind('resizable:resize', resizePanels).resizable('#toggle-sidebar'); + $('#sidebar').bind('resizable:resize', resizePanels) + .resizable('#toggle-sidebar', {minWidth: 8}); resizePanels(); } @@ -114,19 +104,28 @@ {% block breadcrumbs %}Platforma Redakcyjna ❯ plik {{ hash }}{% endblock breadcrumbs %} {% block maincontent %} - {% toolbar %} -