Prevent the filter dialog CodeMirror from overflowing onto the button bar of the dialog. Fixes #3067

This commit is contained in:
Murtuza Zabuawala 2018-01-31 10:12:04 +00:00 committed by Dave Page
parent d8bd6ea885
commit c6e405ce72
2 changed files with 5 additions and 3 deletions

View File

@ -275,11 +275,11 @@ define('pgadmin.datagrid', [
setup: function() {
return {
buttons: [{
text: 'OK',
text: gettext('OK'),
className: 'btn btn-primary',
},
{
text: 'Cancel',
text: gettext('Cancel'),
className: 'btn btn-danger',
},
],
@ -288,6 +288,7 @@ define('pgadmin.datagrid', [
resizable: true,
maximizable: false,
pinnable: false,
autoReset: false,
},
};
},

View File

@ -2,7 +2,8 @@
<textarea id="sql_filter" rows="5" tabindex="0"></textarea>
<style>
.filter-textarea .CodeMirror-scroll {
min-height: 120px;
min-height: 120px;
max-height: 120px;
}
.dataview_filter_dialog {
bottom: 0 !important;