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

Method setContentSize

packages/fairygui/src/scroll/ScrollPane.ts:481–488  ·  view source on GitHub ↗

* Set content size * 设置内容尺寸

(width: number, height: number)

Source from the content-addressed store, hash-verified

479 * 设置内容尺寸
480 */
481 public setContentSize(width: number, height: number): void {
482 if (this._contentWidth === width && this._contentHeight === height) {
483 return;
484 }
485 this._contentWidth = width;
486 this._contentHeight = height;
487 this.handleSizeChanged();
488 }
489
490 private handleSizeChanged(): void {
491 if (this._scrollType === EScrollType.Horizontal || this._scrollType === EScrollType.Both) {

Callers

nothing calls this directly

Calls 1

handleSizeChangedMethod · 0.95

Tested by

no test coverage detected