diff --git a/src/sql/workbench/contrib/dashboard/browser/contents/widgetContent.component.ts b/src/sql/workbench/contrib/dashboard/browser/contents/widgetContent.component.ts
index c3e8ea83b5..a7deac9c3d 100644
--- a/src/sql/workbench/contrib/dashboard/browser/contents/widgetContent.component.ts
+++ b/src/sql/workbench/contrib/dashboard/browser/contents/widgetContent.component.ts
@@ -76,7 +76,7 @@ export class WidgetContent extends AngularDisposable implements AfterViewInit {
@Input() private widgets: WidgetConfig[];
@Input() private originalConfig: WidgetConfig[];
@Input() private context: string;
- @Input() private scrollContent = true;
+ @Input() private scrollContent = false;
private _scrollableElement: ScrollableElement;
@@ -104,7 +104,7 @@ export class WidgetContent extends AngularDisposable implements AfterViewInit {
'auto_resize': false, // Automatically set col_width/row_height so that max_cols/max_rows fills the screen. Only has effect is max_cols or max_rows is set
'maintain_ratio': false, // Attempts to maintain aspect ratio based on the colWidth/rowHeight values set in the config
'prefer_new': false, // When adding new items, will use that items position ahead of existing items
- 'limit_to_screen': true, // When resizing the screen, with this true and auto_resize false, the grid will re-arrange to fit the screen size. Please note, at present this only works with cascade direction up.
+ 'limit_to_screen': false, // When resizing the screen, with this true and auto_resize false, the grid will re-arrange to fit the screen size. Please note, at present this only works with cascade direction up.
};
private _editDispose: Array
= [];
diff --git a/src/sql/workbench/contrib/dashboard/browser/core/dashboardPage.component.html b/src/sql/workbench/contrib/dashboard/browser/core/dashboardPage.component.html
index f634db9934..e1d368be5c 100644
--- a/src/sql/workbench/contrib/dashboard/browser/core/dashboardPage.component.html
+++ b/src/sql/workbench/contrib/dashboard/browser/core/dashboardPage.component.html
@@ -8,7 +8,7 @@
[actions]="panelActions">
-
+
diff --git a/src/sql/workbench/contrib/dashboard/browser/core/dashboardPage.component.ts b/src/sql/workbench/contrib/dashboard/browser/core/dashboardPage.component.ts
index 5b68bf5242..8e9739d282 100644
--- a/src/sql/workbench/contrib/dashboard/browser/core/dashboardPage.component.ts
+++ b/src/sql/workbench/contrib/dashboard/browser/core/dashboardPage.component.ts
@@ -53,7 +53,6 @@ import { DASHBOARD_BORDER } from 'vs/workbench/common/theme';
import { IColorTheme } from 'vs/platform/theme/common/themeService';
import { attachTabbedPanelStyler } from 'sql/workbench/common/styler';
-
const dashboardRegistry = Registry.as(DashboardExtensions.DashboardContributions);
const homeTabGroupId = 'home';
@@ -87,6 +86,7 @@ export abstract class DashboardPage extends AngularDisposable implements IConfig
static tabName = new RawContextKey('tabName', undefined);
private _tabName: IContextKey;
+ public containerOverflowStyle: string;
// a set of config modifiers
private readonly _configModifiers: Array<(item: Array, collection: IConfigModifierCollection, context: string) => Array> = [
@@ -540,6 +540,10 @@ export abstract class DashboardPage extends AngularDisposable implements IConfig
this.showToolbar = false;
}
+ // control-host container has its own scroll management
+ const newTab = this.tabs.find(t => t.id === tab.identifier);
+ this.containerOverflowStyle = newTab && this.getContentType(newTab) === 'controlhost-container' ? 'initial' : 'auto';
+
this._cd.detectChanges();
}