MCPcopy
hub / github.com/wavetermdev/waveterm / positionTabOnScreen

Method positionTabOnScreen

emain/emain-tabview.ts:200–211  ·  view source on GitHub ↗
(winBounds: Rectangle)

Source from the content-addressed store, hash-verified

198 }
199
200 positionTabOnScreen(winBounds: Rectangle) {
201 const curBounds = this.getBounds();
202 if (
203 curBounds.width == winBounds.width &&
204 curBounds.height == winBounds.height &&
205 curBounds.x == 0 &&
206 curBounds.y == 0
207 ) {
208 return;
209 }
210 this.setBounds({ x: 0, y: 0, width: winBounds.width, height: winBounds.height });
211 }
212
213 positionTabOffScreen(winBounds: Rectangle) {
214 this.setBounds({

Callers 2

constructorMethod · 0.80
finalizePositioningMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected