-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix bug scroll (up and down) does not propagating to parent #3666
Conversation
Thanks for the contribution. My concern is that I'm not sure that getVerticalScrollLength should be returning < 0, so there's a risk that someone will fix that, and thereby break this again. Also, if we were to merge it we'd need the three commits squashed into one. @swalters, do you have an opinion? |
PaulL1 said :
You are right. So I test some code fix with getVerticalScrollLength as an absolute value. This fix some scroll but not all. I try with getVerticalScrollLength === 0, but same, it's fix some scroll but not all ... Waiting for @swalters response
For this I don't know how I can do it ...
it's a pleasure ;-) |
@Jacquelin: thanks for the input, we'll wait for @swalters to see what he can tell us. On the squash, the basic process is to issue |
…ll length are negative (Mean no scroll) Update of fix scroll on top/bottom : add a check if vertical scroll length is negative, mean 'Let the parent container scroll
Thank you for the squash !!!!!! ;-) |
@Jacquelin I have to agree with @PaulL1 . What should be fixed is the ScrollEvent.AtTop and .AtBottom. Those should both return true if the grid is truly at top and/or bottom row. |
@swalters Oki ! But how can I fix it ? When rowContainer.getVerticalScrollLength() < 0, So the 'y.percentage' is mixed (or reverse). and this make :
What do you think if I set the scrollYpercentage before call atTop/Bottom ?
|
I made a comment in #3690 I think we'll go that direction for the fix. Thanks for the PR |
thanks to @500tech-user and @Jacquelin for PR's that led to this fix
Hello,
This pull request is to fix the issue #3340.
My first pull request #3531 was not good enough.
Now, I only check if the Vertical scroll length is negative. If it is, then I let the parent the parent container scroll.
Sorry for this double Pull request ...