* Set content size * 设置内容尺寸
(width: number, height: number)
| 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) { |
nothing calls this directly
no test coverage detected