mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-20 12:00:24 -04:00
Merge from vscode cfc1ab4c5f816765b91fb7ead3c3427a7c8581a3
This commit is contained in:
@@ -5,14 +5,10 @@
|
||||
|
||||
import { Event } from 'vs/base/common/event';
|
||||
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
|
||||
import { IDimension } from 'vs/base/browser/dom';
|
||||
|
||||
export const ILayoutService = createDecorator<ILayoutService>('layoutService');
|
||||
|
||||
export interface IDimension {
|
||||
readonly width: number;
|
||||
readonly height: number;
|
||||
}
|
||||
|
||||
export interface ILayoutService {
|
||||
|
||||
_serviceBrand: undefined;
|
||||
@@ -27,9 +23,19 @@ export interface ILayoutService {
|
||||
*/
|
||||
readonly container: HTMLElement;
|
||||
|
||||
/**
|
||||
* An offset to use for positioning elements inside the container.
|
||||
*/
|
||||
readonly offset?: { top: number };
|
||||
|
||||
/**
|
||||
* An event that is emitted when the container is layed out. The
|
||||
* event carries the dimensions of the container as part of it.
|
||||
*/
|
||||
readonly onLayout: Event<IDimension>;
|
||||
|
||||
/**
|
||||
* Focus the primary component of the container.
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user