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

Slipped Checkbox in the frontend #185

Open
erikagrebur opened this issue Oct 25, 2018 · 4 comments
Open

Slipped Checkbox in the frontend #185

erikagrebur opened this issue Oct 25, 2018 · 4 comments
Labels

Comments

@erikagrebur
Copy link

Hi,

I would like to implement this extension to my SilverStripe 4 project.

After the installation I use this code:

$config = GridFieldConfig_RecordEditor::create();
$config->addComponent(new BulkManager());
$gridfield = new GridField('Tasks', 'Tasks', $this->Tasks(), $config);
$fields->addFieldToTab('Root.Main', $gridfield);

But the result is look like this:
image

Is there anyone who has the same problem or maybe can help me?

@kudotony
Copy link

I am experiencing the same issue in the front end too

@kudotony
Copy link

I have just investigated the issues and found the source of problem. The checkbox slipped due to the class form-check-input belonging to silverstripe admin.

The class has a css property which sets the position to "absolute" causing the checkbox to start shifting. I did a minor modification in my own admin css by setting bulkSelect and bulkSelectAll classes with position property to "static" which resolved the issues for me.

@dnsl48
Copy link

dnsl48 commented May 3, 2019

This is SS 4.3 regression

@Anytech
Copy link

Anytech commented Nov 12, 2019

.grid-field__table tr td, .bulkSelectAll {
    position: sticky;
    top: 0;
}

I had the problem that when I scroll the boxes are fixed. This CSS solves it all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants