mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
fixed scrolling for connection viewlet (#4073)
* fixed scrolling for connection viewlet * removed horizontal scrolling
This commit is contained in:
@@ -111,7 +111,7 @@ export class ConnectionViewletPanel extends ViewletPanel {
|
||||
|
||||
layoutBody(size: number): void {
|
||||
this._searchBox.layout();
|
||||
this._serverTreeView.layout(size); // account for search box
|
||||
this._serverTreeView.layout(size - 46); // account for search box and horizontal scroll bar
|
||||
DOM.toggleClass(this._root, 'narrow', this._root.clientWidth < 300);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import { DefaultFilter, DefaultAccessibilityProvider, DefaultController } from '
|
||||
import { IController } from 'vs/base/parts/tree/browser/tree';
|
||||
import { ServerTreeDragAndDrop, RecentConnectionsDragAndDrop } from 'sql/parts/objectExplorer/viewlet/dragAndDropController';
|
||||
import { RecentConnectionDataSource } from 'sql/parts/objectExplorer/viewlet/recentConnectionDataSource';
|
||||
import { ScrollbarVisibility } from 'vs/base/common/scrollable';
|
||||
|
||||
export class TreeCreationUtils {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user