X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/af3ffa21cede6f4e547a18999d764ec8ee07daa4..09fa65b2de2f428bc63082d379ecd6bfbd94f63c:/project/templates/explorer/file_xml.html?ds=inline
diff --git a/project/templates/explorer/file_xml.html b/project/templates/explorer/file_xml.html
index e4c73712..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,23 +17,12 @@
function resizePanels() {
$('iframe').width($(window).width() - $('#sidebar').outerWidth());
- $('iframe').height($(window).height() - 100);
- $('#toggle-sidebar').height($(window).height() - 55);
- $('#images-wrap').height($(window).height() - 82)
+ $('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();
})
@@ -90,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();
}