GridFieldBulkEditingTools icon indicating copy to clipboard operation
GridFieldBulkEditingTools copied to clipboard

Slipped Checkbox in the frontend

Open erikagrebur opened this issue 6 years ago • 4 comments

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?

erikagrebur avatar Oct 25 '18 14:10 erikagrebur

I am experiencing the same issue in the front end too

kudotony avatar Nov 14 '18 01:11 kudotony

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.

kudotony avatar Dec 24 '18 06:12 kudotony

This is SS 4.3 regression

dnsl48 avatar May 03 '19 03:05 dnsl48

.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

Anytech avatar Nov 12 '19 02:11 Anytech