From 88d6b63e12c010170c2ccc46225a35523dce77be Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Tue, 14 Dec 2021 11:25:12 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B04434=20Prevent=20FormTables=20from=20fli?= =?UTF-8?q?ckering?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/datatable/static/formtable/layout.html.twig | 2 +- .../datatable/static/formtable/layout.ready.js.twig | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/templates/base/components/datatable/static/formtable/layout.html.twig b/templates/base/components/datatable/static/formtable/layout.html.twig index dec313198..9e2316217 100644 --- a/templates/base/components/datatable/static/formtable/layout.html.twig +++ b/templates/base/components/datatable/static/formtable/layout.html.twig @@ -4,7 +4,7 @@ {% set columns = oUIBlock.GetColumns() %} - +
{% for column in columns %} diff --git a/templates/base/components/datatable/static/formtable/layout.ready.js.twig b/templates/base/components/datatable/static/formtable/layout.ready.js.twig index 3cac4a04f..544910cc7 100644 --- a/templates/base/components/datatable/static/formtable/layout.ready.js.twig +++ b/templates/base/components/datatable/static/formtable/layout.ready.js.twig @@ -9,7 +9,6 @@ var oTable{{ sListIDForVarSuffix }} = $('#{{ oUIBlock.GetId() }}').DataTable({ scrollCollapse: true, paging: false, filter: false, - autoWidth: false, search: false, dom: "t", "order": [], @@ -64,11 +63,6 @@ if ($("#{{ oUIBlock.GetId() }}").height() > 0) } {% endif %} -if ($('#{{ oUIBlock.GetId() }}').find('thead').is(':visible')) -{ - oTable{{ sListIDForVarSuffix }}.columns.adjust().draw(); -} - if (window.ResizeObserver) { let oFromTable{{ sListIDForVarSuffix }}ResizeTimeout = null;