From 6b76bc641a8855372291b541e2e2fffdf2aaef5c Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Mon, 10 Apr 2017 23:15:32 +1200 Subject: [PATCH] FIX Ensure field GridField has a 100% relative width rather than fixed --- javascript/FieldEditor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/FieldEditor.js b/javascript/FieldEditor.js index 6d998d4..5e9b14e 100644 --- a/javascript/FieldEditor.js +++ b/javascript/FieldEditor.js @@ -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');