Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-05-27 10:18:10 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-05-27 10:18:10 +0300
commita3225dc1edc6f654e6f83fcc13b85193b477f32b (patch)
treef049107e65ce7ccd5b306e8270b0cc678c78f96f /js/transformations
parentcec7440341597e8e63ff3f92c9eddca4f0b7f4a7 (diff)
Fix height issue for SQL editor input transformations
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/transformations')
-rw-r--r--js/transformations/sql_editor.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/js/transformations/sql_editor.js b/js/transformations/sql_editor.js
index 1e402994c3..cfb4d82816 100644
--- a/js/transformations/sql_editor.js
+++ b/js/transformations/sql_editor.js
@@ -6,10 +6,7 @@
*/
AJAX.registerOnload('transformations/sql_editor.js', function() {
- $.each($('textarea.transform_sql_editor'), function (i, e) {
- var height = $(e).css('height');
- var codemirror_editor = PMA_getSQLEditor($(e));
- codemirror_editor.getScrollerElement().style.height = height;
- codemirror_editor.refresh();
+ $('textarea.transform_sql_editor').each(function () {
+ PMA_getSQLEditor($(this));
});
});