diff --git a/css/ModelAdmin.css b/css/ModelAdmin.css index 0c1b690d..56ea7ef9 100644 --- a/css/ModelAdmin.css +++ b/css/ModelAdmin.css @@ -98,7 +98,7 @@ body.ModelAdmin #right table.results td.active { } body.ModelAdmin #right .tab { - overflow: hidden; + overflow: auto; padding-bottom: 20px; } diff --git a/javascript/LeftAndMain.js b/javascript/LeftAndMain.js index d7daa023..13520a7e 100644 --- a/javascript/LeftAndMain.js +++ b/javascript/LeftAndMain.js @@ -155,6 +155,9 @@ window.onresize = function(init) { if(typeof fitToParent == 'function') { fitToParent('right', 12); + if($('ModelAdminPanel')) { + fitToParent('ModelAdminPanel',-30); + } if($('contentPanel')) { fitToParent('contentPanel', 12); } @@ -172,7 +175,7 @@ window.onresize = function(init) { } if(typeof fitToParent == 'function') { - fitToParent('Form_EditForm'); + fitToParent('Form_EditForm', -20); if($('Form_EditorToolbarImageForm') && $('Form_EditorToolbarImageForm').style.display == "block") { fitToParent('Form_EditorToolbarImageForm', 5); fitToParent($('Form_EditorToolbarImageForm').getElementsByTagName('fieldset')[0]); diff --git a/javascript/ModelAdmin.js b/javascript/ModelAdmin.js index 7a9f7541..af6fb1a1 100644 --- a/javascript/ModelAdmin.js +++ b/javascript/ModelAdmin.js @@ -30,7 +30,13 @@ $(document).ready(function() { * Attach tabs plugin to the set of search filter and edit forms */ $('ul.tabstrip').livequery(function() { - $(this).tabs(); + $(this).tabs({ + // This show handler is necessary to get tabs working properly with the crappy old layout_helpers.js layout + // manager + show : function() { + if(window.onresize) window.onresize(); + } + }); }); /*