From 21bc99c11dd2e482bf022daf1a5aa2698fe0e876 Mon Sep 17 00:00:00 2001 From: Brad Busenius Date: Thu, 14 Apr 2016 14:29:34 -0500 Subject: [PATCH] Changed the way width is defined in getWidth to prevent the 'delete' button from being pushed off the edge of the window. --- wagtail/contrib/table_block/static/table_block/js/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/contrib/table_block/static/table_block/js/table.js b/wagtail/contrib/table_block/static/table_block/js/table.js index 9c5de33710..47b7e21a1e 100644 --- a/wagtail/contrib/table_block/static/table_block/js/table.js +++ b/wagtail/contrib/table_block/static/table_block/js/table.js @@ -14,7 +14,7 @@ function initTable(id, tableOptions) { var structureEvent; var dataForForm = null; var getWidth = function() { - return $('footer').innerWidth(); + return $('.widget-table_input').closest('.sequence-member-inner').width(); }; try {