This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$anchorScroll Offset #2070
Closed
Description
Just a quick feature request.
If your app has a fixed position header, $anchorScroll
will "incorrectly" position the scroll for the users view. Nothing is broke here, but allowing for an $anchorScrollProvider
offset number would be nice.
Basically, right after elm.scrollIntoView()
it would execute roughly.. if (offset > 0) $window.scroll($window.scrollX, $window.scrollY - offset);
. This would allow $anchorScrollProvider
& $anchorScroll
to play nicely with fixed position headers.