Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GridField - no spacing below #9154

Open
1 task
christopherdarling opened this issue Jul 30, 2019 · 1 comment
Open
1 task

GridField - no spacing below #9154

christopherdarling opened this issue Jul 30, 2019 · 1 comment

Comments

@christopherdarling
Copy link
Contributor

christopherdarling commented Jul 30, 2019

Affected Version

Running SilverStripe 4.4.1

Description

When creating a TextField underneath a GridField there is no space between, see below;
Screenshot 2019-07-30 at 11 24 21

Edit: just to add - only an issue when there are no records and the pagination summary row isn't visible

Steps to Reproduce

    public function getCMSFields()
    {
        $this->beforeUpdateCMSFields(function (FieldList $fields) {
            $fields->addFieldsToTab('Root.Main', [
                new TextField('FieldAbove'),
                new GridField(
                    'Sections',
                    'Sections',
                    $this->Sections(),
                    new GridFieldConfig_RelationEditor()
                ),
                new TextField('FieldBelow'),
            ]);
        });

        return parent::getCMSFields();
    }

PR

@sabina-talipova
Copy link
Contributor

Probably, we could include this issue in more complex design epic in the future.

@sabina-talipova sabina-talipova removed their assignment Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants