mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX Ensure field GridField has a 100% relative width rather than fixed
This commit is contained in:
parent
3e9a271310
commit
6b76bc641a
@ -47,7 +47,7 @@
|
|||||||
// Make sure gridfield buttons stick to top of page when user scrolls down
|
// Make sure gridfield buttons stick to top of page when user scrolls down
|
||||||
stickyHeaderInterval = setInterval(function () {
|
stickyHeaderInterval = setInterval(function () {
|
||||||
var offsetTop = fieldEditor.offset().top;
|
var offsetTop = fieldEditor.offset().top;
|
||||||
$buttonrow.width(self.width());
|
$buttonrow.width('100%');
|
||||||
if (offsetTop > navHeight || offsetTop === 0) {
|
if (offsetTop > navHeight || offsetTop === 0) {
|
||||||
$buttonrow.removeClass('stickyButtons');
|
$buttonrow.removeClass('stickyButtons');
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user