Conform more code to strictNullChecks
and noImplicitAny
(#11156)
This commit is contained in:
parent
46eb34a55d
commit
6836a5fa7b
9 changed files with 36 additions and 19 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue