Conform more code to strictNullChecks and noImplicitAny (#11156)

This commit is contained in:
Michael Telatynski
2023-06-28 14:05:36 +01:00
committed by GitHub
parent 46eb34a55d
commit 6836a5fa7b
9 changed files with 36 additions and 19 deletions

View File

@@ -830,6 +830,7 @@ export default class ScrollPanel extends React.Component<IProps> {
}
private topFromBottom(node: HTMLElement): number {
if (!this.itemlist.current) return -1;
// current capped height - distance from top = distance from bottom of container to top of tracked element
return this.itemlist.current.clientHeight - node.offsetTop;
}