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