Fix double scrollbar on the query tool results grid.

This commit is contained in:
Khushboo Vashi 2019-02-27 10:59:58 +00:00 committed by Dave Page
parent 9c5b9364b6
commit 6b3a628e7a
3 changed files with 12 additions and 1 deletions

View File

@ -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;

View File

@ -423,3 +423,7 @@ input.editor-checkbox:focus {
.geometry-viewer-info-control i{
margin: 0 0 0 4px;
}
.hide-vertical-scrollbar {
overflow-y: hidden;
}

View File

@ -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>',
});