Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUI-3174 Align to bottom of scrollable ancestor and scroll down by scrollHeight. #451

Merged
merged 1 commit into from Oct 25, 2019

Conversation

brianikim
Copy link

@brianikim brianikim commented Oct 24, 2019

https://issues.liferay.com/browse/AUI-3174
https://issues.liferay.com/browse/LPS-100614
First, we set scrollIntoView to false so that the bottom of the element will be aligned to the bottom of the visible area of the scrollable ancestor.
ScrollIntoViewFalse

Then we fetch the scrollHeight of the field and scroll down by that amount.
AfterScrollByScrollHeight

@jonmak08 jonmak08 merged commit 4171251 into jonmak08:master Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants