跳到主要内容

getVisibleGridRows 获取窗口内部可见的网格行数

getVisibleGridRows

类型: MethodDeclaration

所属类: WindowElement

定义位置: ui.ts

描述

获取窗口内部可见的网格行数

返回值:行数

返回值

类型: number

行数

源代码

位置: 第 5786 行

public getVisibleGridRows(): number {
switch (this.layout) {
case 'normal':
return 0
}
const innerHeight = this.height + this.gridGapY - this.paddingY * 2
const unitHeight = this.gridHeight + this.gridGapY
return unitHeight > 0 ? Math.floor(innerHeight / unitHeight) : Infinity
}

文档生成时间:2025/7/7 12:07:07