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

Fix scroll up not propagating to parent #3531

Closed
wants to merge 1 commit into from

Conversation

Jacquelin
Copy link

Hello,

This pull request is to fix, what I consider a bug, the issue #3340

This 'bug' happen for a grid that displays less than its height (3 line, 3 * 30px, for a height of 300px for example). When this happening, the scroll up is not propagated to the parent.

I assumed that if the VerticalScrollLength AND the scrollTop + scrollYAmount is negative, then the scrollYPercentage is set to 0.

It's working for a grid with the vertical scroll avalaible, or not.

@PaulL1
Copy link
Contributor

PaulL1 commented May 21, 2015

@swalters: any chance you'd take a quick look at this one too? It looks sort of OK in concept, but I know there are gremlins hiding in scrolling code.

@Jacquelin
Copy link
Author

Hi,

I think of another possibility, "rowContainer.getVerticalScrollLength();" could be an absolute value (never negative!). It solve the bug too. If you think it's a better solution, you can just reject the PR and I will make an another PR with the absolute value

thx

@rupampatel2006
Copy link

@Jacquelin Your fix works well. @PaulL1 Are you going to merge this fix?

@PaulL1
Copy link
Contributor

PaulL1 commented May 26, 2015

@rupampatel2006 : not without @swalters reviewing it.

@Jacquelin
Copy link
Author

Hi,

no news from @swalters ?

@villelahdenvuo
Copy link

I would really like this to get fixed, not being able to scroll up at all on my page with a full width grid.

@Jacquelin
Copy link
Author

Sorry but my pull request does not fix the scroll issue ...

I make several test :

This PR should be rejected, I'm currently working on a better fix ... sorry :-/

@Jacquelin Jacquelin closed this Jun 2, 2015
@villelahdenvuo
Copy link

I think the main issue for me is that, even though I have set enableVerticalScrollbar: uiGridConstants.scrollbars.NEVER and I resize the grid to the contents it still eats the scroll event.

@Jacquelin
Copy link
Author

@tuhoojabotti : It's what I was trying to fix in first place (my fix work for this !), but still ... incomplete for a true bug fix. You can discuss about this at #3340

swalters added a commit that referenced this pull request Jun 19, 2015
thanks to @500tech-user and @Jacquelin for PR's that led to this fix
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

Successfully merging this pull request may close these issues.

None yet

4 participants