diff --git a/traffic_portal/app/src/modules/private/cdns/config/ConfigController.js b/traffic_portal/app/src/modules/private/cdns/config/ConfigController.js index 8483a36b83..6b8dc2e556 100644 --- a/traffic_portal/app/src/modules/private/cdns/config/ConfigController.js +++ b/traffic_portal/app/src/modules/private/cdns/config/ConfigController.js @@ -155,6 +155,14 @@ let ConfigController = function (cdn, currentSnapshot, newSnapshot, $scope, $sta }); }; + $scope.tabSelected = function() { + // issue 3863 - adjust column headers when tab is selected and data table is visible. hacky...sorry... + window.setTimeout(function() { + $($.fn.dataTable.tables(true)).DataTable() + .columns.adjust(); + },100); + }; + $scope.navigateToPath = locationUtils.navigateToPath; angular.element(document).ready(function () { @@ -166,6 +174,7 @@ let ConfigController = function (cdn, currentSnapshot, newSnapshot, $scope, $sta "language": { "emptyTable": "No pending changes" }, + "buttons": [], "columnDefs": [ { 'orderable': false, 'targets': [2, 3] } ] diff --git a/traffic_portal/app/src/modules/private/cdns/config/config.tpl.html b/traffic_portal/app/src/modules/private/cdns/config/config.tpl.html index 3b1ecda860..503947d669 100644 --- a/traffic_portal/app/src/modules/private/cdns/config/config.tpl.html +++ b/traffic_portal/app/src/modules/private/cdns/config/config.tpl.html @@ -32,7 +32,7 @@