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

Can't scroll down to the bottom fluently #6549

Closed
screamsyk opened this issue Jan 29, 2018 · 3 comments
Closed

Can't scroll down to the bottom fluently #6549

screamsyk opened this issue Jan 29, 2018 · 3 comments

Comments

@screamsyk
Copy link

when the ui-grid's height is higher than a value which is not fixed, I scroll down to the bottom, but the ui-grid backs to top immediately. I don't know why and the value usually is 690px @mportuga

@screamsyk
Copy link
Author

screamsyk commented Feb 24, 2018

Can anybody help me to solve the question of the scroll bar bounces up?

@andrewkittredge
Copy link
Contributor

Probably related to #6292

@screamsyk
Copy link
Author

I am so happy for that I have found the solution of this problem.
(1)Viewing the source code, I find that the height of .ui-grid-canvas is calculated by the height of row.
(2)the real height of row in my grid is '40px', because I set font-size to be '16'px and I set the padding-top, and so on
(3)but the defult height of row is 30
1
(4)so the height of '.ui-grid-canvas' is miscalculate
(5)To fix it ,I set rowHeight to be 40
(6)Finally, the scrolling is normal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants