(
public readonly view: IGridView,
readonly orientation: Orientation,
orthogonalSize: number,
size = 0
)
| 92 | } |
| 93 | |
| 94 | constructor( |
| 95 | public readonly view: IGridView, |
| 96 | readonly orientation: Orientation, |
| 97 | orthogonalSize: number, |
| 98 | size = 0 |
| 99 | ) { |
| 100 | this._orthogonalSize = orthogonalSize; |
| 101 | this._size = size; |
| 102 | |
| 103 | this._disposable = this.view.onDidChange((event) => { |
| 104 | if (event) { |
| 105 | this._onDidChange.fire({ |
| 106 | size: |
| 107 | this.orientation === Orientation.VERTICAL |
| 108 | ? event.width |
| 109 | : event.height, |
| 110 | orthogonalSize: |
| 111 | this.orientation === Orientation.VERTICAL |
| 112 | ? event.height |
| 113 | : event.width, |
| 114 | }); |
| 115 | } else { |
| 116 | this._onDidChange.fire({}); |
| 117 | } |
| 118 | }); |
| 119 | } |
| 120 | |
| 121 | public setVisible(visible: boolean): void { |
| 122 | if (this.view.setVisible) { |
nothing calls this directly
no test coverage detected