mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-23 23:13:38 -06:00
Fix double scrollbar on the query tool results grid.
This commit is contained in:
parent
9c5b9364b6
commit
6b3a628e7a
@ -18,7 +18,7 @@ define(
|
||||
var defaults = [
|
||||
'name', 'title', 'width', 'height', 'showTitle', 'isCloseable',
|
||||
'isPrivate', 'content', 'icon', 'events', 'onCreate', 'elContainer',
|
||||
'canHide', 'limit',
|
||||
'canHide', 'limit', 'extraClasses',
|
||||
];
|
||||
_.extend(this, _.pick(options, defaults));
|
||||
};
|
||||
@ -37,6 +37,7 @@ define(
|
||||
onCreate: null,
|
||||
elContainer: false,
|
||||
limit: null,
|
||||
extraClasses: null,
|
||||
load: function(docker, title) {
|
||||
var that = this;
|
||||
if (!that.panel) {
|
||||
@ -61,6 +62,11 @@ define(
|
||||
'class': 'pg-panel-content',
|
||||
}).append($(that.content));
|
||||
|
||||
// Add extra classes
|
||||
if (!_.isNull('extraClasses')) {
|
||||
$container.addClass(that.extraClasses);
|
||||
}
|
||||
|
||||
myPanel.closeable(!!that.isCloseable);
|
||||
myPanel.layout().addItem($container);
|
||||
that.panel = myPanel;
|
||||
|
@ -423,3 +423,7 @@ input.editor-checkbox:focus {
|
||||
.geometry-viewer-info-control i{
|
||||
margin: 0 0 0 4px;
|
||||
}
|
||||
|
||||
.hide-vertical-scrollbar {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
@ -237,6 +237,7 @@ define('tools.querytool', [
|
||||
height: '100%',
|
||||
isCloseable: false,
|
||||
isPrivate: true,
|
||||
extraClasses: 'hide-vertical-scrollbar',
|
||||
content: '<div id ="datagrid" class="sql-editor-grid-container text-12" tabindex: "0"></div>',
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user