colymba / GridFieldBulkEditingTools

SilverStripe GridField Components set for bulk upload and bulk record edit, unlink & delete :package::boom:
BSD 3-Clause "New" or "Revised" License
88 stars 81 forks source link

Slipped Checkbox in the frontend #185

Open erikagrebur opened 5 years ago

erikagrebur commented 5 years ago

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 commented 5 years ago

I am experiencing the same issue in the front end too

kudotony commented 5 years ago

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 commented 5 years ago

This is SS 4.3 regression

Anytech commented 4 years ago
.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