feat(Tab): add scrollspy prop (#5273)
This commit is contained in:
@@ -59,3 +59,7 @@ export function getVisibleHeight(element: ScrollElement) {
|
||||
? element.innerHeight
|
||||
: (<HTMLElement>element).getBoundingClientRect().height;
|
||||
}
|
||||
|
||||
export function getVisibleTop(element: ScrollElement) {
|
||||
return element === window ? 0 : (<HTMLElement>element).getBoundingClientRect().top;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user