Fix profile layout

This commit is contained in:
Christopher Joe 2016-10-11 15:49:08 +13:00
parent 20cee73583
commit 5a5d62fa27
2 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class CMSProfileController extends LeftAndMain {
$form->Fields()->findOrMakeTab('Root')->setTemplate('SilverStripe\\Forms\\CMSTabSet');
}
$form->addExtraClass('member-profile-form root-form cms-edit-form center');
$form->addExtraClass('member-profile-form root-form cms-edit-form center fill-height');
return $form;
}

View File

@ -1589,6 +1589,7 @@ class LeftAndMain extends Controller implements PermissionProvider {
if ($record instanceof CMSPreviewable) {
$form->addExtraClass('cms-previewable');
}
$form->addExtraClass('fill-height');
// Set this if you want to split up tabs into a separate header row
// if($form->Fields()->hasTabset()) {