diff --git a/ChangeLog b/ChangeLog index 7541a3eb98..476639a800 100644 --- a/ChangeLog +++ b/ChangeLog @@ -52,6 +52,7 @@ phpMyAdmin - ChangeLog - issue #15499 Fix unparenthesized php deprecation - issue #15482 Fix URL encoding plus sign (+) in the table or DB name when configuring foreign keys - issue #14898 Fixed bottom table in list in left panel blocked by horizontal scroll bar +- issue #15161 Fix text area overflows its parent element on "Query" page 4.9.1 (2019-09-20) - issue #15313 Added support for Twig 2 diff --git a/js/database/qbe.js b/js/database/qbe.js index b69d35b8cf..b727cde1eb 100644 --- a/js/database/qbe.js +++ b/js/database/qbe.js @@ -27,7 +27,15 @@ AJAX.registerTeardown('database/qbe.js', function () { }); AJAX.registerOnload('database/qbe.js', function () { - Functions.getSqlEditor($('#textSqlquery'), {}, 'both'); + Functions.getSqlEditor($('#textSqlquery'), {}, 'none'); + + $('#tblQbe').width($('#tblQbe').parent().width()); + $('#tblQbeFooters').width($('#tblQbeFooters').parent().width()); + $('#tblQbe').resize(function () { + var newWidthTblQbe = $('#textSqlquery').next().width(); + $('#tblQbe').width(newWidthTblQbe); + $('#tblQbeFooters').width(newWidthTblQbe); + }); /** * Ajax handler to check the corresponding 'show' checkbox when column is selected diff --git a/libraries/classes/Database/Qbe.php b/libraries/classes/Database/Qbe.php index 7182cc8de7..fe8b498772 100644 --- a/libraries/classes/Database/Qbe.php +++ b/libraries/classes/Database/Qbe.php @@ -1801,7 +1801,7 @@ class Qbe $html_output .= Url::getHiddenInputs(['db' => $this->_db]); // get SQL query $html_output .= '