From c6d295727c0277d841e170a38099182aa9102a3c Mon Sep 17 00:00:00 2001 From: Khushboo Vashi Date: Fri, 1 Mar 2019 12:49:41 +0000 Subject: [PATCH] Fix resizing of the results grid, when full of data. --- web/pgadmin/tools/sqleditor/static/js/sqleditor.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js index 9af361997..c8313e7f0 100644 --- a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js +++ b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js @@ -265,7 +265,7 @@ define('tools.querytool', [ name: 'history', title: gettext('Query History'), width: '100%', - height: '100%', + height: '33%', isCloseable: false, isPrivate: true, content: '
', @@ -275,7 +275,7 @@ define('tools.querytool', [ name: 'scratch', title: gettext('Scratch Pad'), width: '25%', - height: '100%', + height: '33%', isCloseable: true, isPrivate: false, content: '
', @@ -819,7 +819,7 @@ define('tools.querytool', [ var $data_grid = $('#datagrid'); // Calculate height based on panel size at runtime & set it - var grid_height = $($('#editor-panel').find('.wcFrame')[1]).height() - 35; + var grid_height = $(this.data_output_panel.$container.parent().parent()).height() - 35; $data_grid.height(grid_height); var dataView = self.dataView = new Slick.Data.DataView(), @@ -1248,7 +1248,7 @@ define('tools.querytool', [ /* This function is responsible to render output grid */ grid_resize: function(grid) { var prev_height = $('#datagrid').height(), - h = $($('#editor-panel').find('.wcFrame')[1]).height() - 35, + h = $(this.data_output_panel.$container.parent().parent()).height() - 35, prev_viewport = grid.getViewport(), prev_viewport_rows = grid.getRenderedRange(), prev_cell = grid.getActiveCell();