MCPcopy
hub / github.com/ZToolsCenter/ZTools / updateHeight

Function updateHeight

resources/preload.js:1595–1603  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1593 }
1594
1595 function updateHeight() {
1596 var container = listState.container
1597 if (!container || container.children.length === 0) {
1598 window.ztools.setExpendHeight(0)
1599 return
1600 }
1601 var height = Math.min(container.scrollHeight, 541)
1602 window.ztools.setExpendHeight(height)
1603 }
1604
1605 function doSelect() {
1606 var item = listState.items[listState.selectedIndex]

Callers 1

renderItemsFunction · 0.85

Calls 1

setExpendHeightMethod · 0.45

Tested by

no test coverage detected