(
pane: PaneviewPanel,
size?: number | Sizing,
index = this.splitview.length,
skipLayout = false
)
| 113 | } |
| 114 | |
| 115 | public addPane( |
| 116 | pane: PaneviewPanel, |
| 117 | size?: number | Sizing, |
| 118 | index = this.splitview.length, |
| 119 | skipLayout = false |
| 120 | ): void { |
| 121 | const disposable = pane.onDidChangeExpansionState(() => { |
| 122 | this.setupAnimation(); |
| 123 | this._onDidChange.fire(undefined); |
| 124 | }); |
| 125 | |
| 126 | const paneItem: PaneItem = { |
| 127 | pane, |
| 128 | disposable: { |
| 129 | dispose: () => { |
| 130 | disposable.dispose(); |
| 131 | }, |
| 132 | }, |
| 133 | }; |
| 134 | |
| 135 | this.paneItems.splice(index, 0, paneItem); |
| 136 | |
| 137 | pane.orthogonalSize = this.splitview.orthogonalSize; |
| 138 | this.splitview.addView(pane, size, index, skipLayout); |
| 139 | } |
| 140 | |
| 141 | getViewSize(index: number): number { |
| 142 | return this.splitview.getViewSize(index); |
no test coverage detected