MCPcopy Create free account
hub / github.com/esengine/esengine / layoutModalWaitPane

Method layoutModalWaitPane

packages/fairygui/src/widgets/Window.ts:350–364  ·  view source on GitHub ↗

* Layout modal wait pane * 布局模态等待面板

()

Source from the content-addressed store, hash-verified

348 * 布局模态等待面板
349 */
350 protected layoutModalWaitPane(): void {
351 if (!this._modalWaitPane) return;
352
353 if (this._contentArea && this._frame) {
354 const pt = this._frame.localToGlobal(0, 0);
355 const localPt = this.globalToLocal(pt.x, pt.y);
356 this._modalWaitPane.setXY(
357 localPt.x + this._contentArea.x,
358 localPt.y + this._contentArea.y
359 );
360 this._modalWaitPane.setSize(this._contentArea.width, this._contentArea.height);
361 } else {
362 this._modalWaitPane.setSize(this.width, this.height);
363 }
364 }
365
366 /**
367 * Close modal wait indicator

Callers 1

showModalWaitMethod · 0.95

Calls 4

localToGlobalMethod · 0.80
globalToLocalMethod · 0.80
setXYMethod · 0.80
setSizeMethod · 0.45

Tested by

no test coverage detected