From 44d86bb14c1c8e610905d34c9c2a8005f32c2cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Wed, 20 Jul 2016 17:12:17 +0200 Subject: [PATCH] Feature #4614: Fix viewport overflow when datatable has advanced search (cherry picked from commit 13343e7f22d8108fde1d9768edf35a4b32d636e7) --- src/sunstone/public/app/utils/tab-datatable.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sunstone/public/app/utils/tab-datatable.js b/src/sunstone/public/app/utils/tab-datatable.js index 071819ad7b..22b8f7475a 100644 --- a/src/sunstone/public/app/utils/tab-datatable.js +++ b/src/sunstone/public/app/utils/tab-datatable.js @@ -279,6 +279,12 @@ define(function(require) { } Foundation.reflow($('#' + this.dataTableId + 'Search-dropdown'), 'dropdown'); + + // For some reason the dropdown forces horizontal and vertical scrollbars, + // and breaks the full-screen modal positioning (VNC). It gets fixed once + // the dropdown is shown+hidden, so we force it now + $('#' + this.dataTableId + 'Search-wrapper button.search-dropdown').click(); + $('#' + this.dataTableId + 'Search-wrapper button.search-dropdown').click(); }