FIX Ensure field GridField has a 100% relative width rather than fixed

This commit is contained in:
Robbie Averill 2017-04-10 23:15:32 +12:00
parent 3e9a271310
commit 6b76bc641a
1 changed files with 2 additions and 2 deletions

View File

@ -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');