MCPcopy Create free account
hub / github.com/dethcrypto/dethcode / offset

Function offset

packages/vscode-host/src/src/vs/workbench/browser/layout.ts:166–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 get dimension(): IDimension { return this._dimension; }
165
166 get offset() {
167 let top = 0;
168 let quickPickTop = 0;
169 if (this.isVisible(Parts.BANNER_PART)) {
170 top = this.getPart(Parts.BANNER_PART).maximumHeight;
171 quickPickTop = top;
172 }
173 if (this.isVisible(Parts.TITLEBAR_PART)) {
174 top += this.getPart(Parts.TITLEBAR_PART).maximumHeight;
175 quickPickTop = top;
176 }
177 // If the command center is visible then the quickinput should go over the title bar and the banner
178 if (this.titleService.isCommandCenterVisible) {
179 quickPickTop = 6;
180 }
181 return { top, quickPickTop };
182 }
183
184 //#endregion
185

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected