Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/vs/base/browser/ui/grid/grid.ts')
-rw-r--r--src/vs/base/browser/ui/grid/grid.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vs/base/browser/ui/grid/grid.ts b/src/vs/base/browser/ui/grid/grid.ts
index e4cbed18667..cf8798982b0 100644
--- a/src/vs/base/browser/ui/grid/grid.ts
+++ b/src/vs/base/browser/ui/grid/grid.ts
@@ -528,6 +528,16 @@ export class Grid<T extends IView = IView> extends Disposable {
}
/**
+ * Returns whether all other {@link IView views} are at their minimum size.
+ *
+ * @param view The reference {@link IView view}.
+ */
+ isViewSizeMaximized(view: T): boolean {
+ const location = this.getViewLocation(view);
+ return this.gridview.isViewSizeMaximized(location);
+ }
+
+ /**
* Get the size of a {@link IView view}.
*
* @param view The {@link IView view}. Provide `undefined` to get the size