Skip to content

Commit

Permalink
docs(splitview): 📝 shift things around
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Nov 11, 2021
1 parent c06bf87 commit bf7ad74
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/vs/base/browser/ui/splitview/splitview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,6 @@ export interface IView<TLayoutContext = undefined> {
*/
readonly maximumSize: number;

/**
* View instances are supposed to fire the {@link IView.onDidChange} event whenever
* any of the constraint properties have changed:
*
* - {@link IView.minimumSize}
* - {@link IView.maximumSize}
* - {@link IView.priority}
* - {@link IView.snap}
*
* The SplitView will relayout whenever that happens. The event can optionally emit
* the view's preferred size for that relayout.
*/
readonly onDidChange: Event<number | undefined>;

/**
* The priority of the view when the {@link SplitView.resize layout} algorithm
* runs. Views with higher priority will be resized first.
Expand All @@ -88,6 +74,20 @@ export interface IView<TLayoutContext = undefined> {
*/
readonly snap?: boolean;

/**
* View instances are supposed to fire the {@link IView.onDidChange} event whenever
* any of the constraint properties have changed:
*
* - {@link IView.minimumSize}
* - {@link IView.maximumSize}
* - {@link IView.priority}
* - {@link IView.snap}
*
* The SplitView will relayout whenever that happens. The event can optionally emit
* the view's preferred size for that relayout.
*/
readonly onDidChange: Event<number | undefined>;

/**
* This will be called by the {@link SplitView} during layout. A view meant to
* pass along the layout information down to its descendants.
Expand Down

0 comments on commit bf7ad74

Please sign in to comment.