diff --git a/Forms/GridField/GridFieldDetailForm_ItemRequest.php b/Forms/GridField/GridFieldDetailForm_ItemRequest.php index c512c0354..b63e3ffe2 100644 --- a/Forms/GridField/GridFieldDetailForm_ItemRequest.php +++ b/Forms/GridField/GridFieldDetailForm_ItemRequest.php @@ -254,7 +254,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler 'type' => 'Includes', 'SilverStripe\\Admin\\LeftAndMain_EditForm', ]); - $form->addExtraClass('cms-content cms-edit-form center flexbox-area-grow'); + $form->addExtraClass('cms-content cms-edit-form center fill-height flexbox-area-grow'); $form->setAttribute('data-pjax-fragment', 'CurrentForm Content'); if ($form->Fields()->hasTabSet()) { $form->Fields()->findOrMakeTab('Root')->setTemplate('SilverStripe\\Forms\\CMSTabSet'); diff --git a/admin/client/src/legacy/LeftAndMain.js b/admin/client/src/legacy/LeftAndMain.js index 74ae6ac6d..0e0b6fd25 100644 --- a/admin/client/src/legacy/LeftAndMain.js +++ b/admin/client/src/legacy/LeftAndMain.js @@ -329,7 +329,7 @@ $.entwine('ss', function($) { content.css({'min-width': ''}); preview.css({'min-width': ''}); - + if (content.width() + preview.width() >= options.minContentWidth + options.minPreviewWidth) { content.css({'min-width': options.minContentWidth}); preview.css({'min-width': options.minPreviewWidth}); @@ -1447,22 +1447,15 @@ $.entwine('ss', function($) { $filters = $('.cms-content-filters').first(), collapsed = this.data('collapsed'); - // Prevent the user from spamming the UI with animation requests. - if (this.data('animating')) { - return; + // previously using "slideDown"/"slideUp" jQuery, but it was causing issues + if (collapsed) { + this.addClass('active'); + $filters.css('display', 'block'); + } else { + this.removeClass('active'); + $filters.css('display', ''); } - - this.toggleClass('active'); - this.data('animating', true); - - // Slide the element down / up based on it's current collapsed state. - $filters[collapsed ? 'slideDown' : 'slideUp']({ - complete: function () { - // Update the element's state. - self.data('collapsed', !collapsed); - self.data('animating', false); - } - }); + self.data('collapsed', !collapsed); }, onclick: function () { this.showHide(); diff --git a/admin/templates/SilverStripe/Admin/Includes/ModelAdmin_Content.ss b/admin/templates/SilverStripe/Admin/Includes/ModelAdmin_Content.ss index 627261d14..fc747f23a 100644 --- a/admin/templates/SilverStripe/Admin/Includes/ModelAdmin_Content.ss +++ b/admin/templates/SilverStripe/Admin/Includes/ModelAdmin_Content.ss @@ -27,7 +27,7 @@ -
+
$Tools