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

Cell navigation does not show correct column if there is pinnedLeft column #4389

Closed
htettwin opened this issue Sep 17, 2015 · 2 comments · Fixed by #4415
Closed

Cell navigation does not show correct column if there is pinnedLeft column #4389

htettwin opened this issue Sep 17, 2015 · 2 comments · Fixed by #4415

Comments

@htettwin
Copy link

When there are columns pinned to the left, the cell nav does not show correct column.
See plunker http://plnkr.co/edit/YJAu6irPzKgUURzsf1ju?p=preview

@swalters
Copy link
Contributor

your plunker doesn't allow column pinning. Is it updated to include that feature?

@htettwin
Copy link
Author

Here is the plunker http://plnkr.co/edit/Kq6ao86GJ7j6cnMCd5Hb?p=preview. I think the issue is at line 2372 in core/factories/Grid.js. The value for columnRightEdge needs to take in account of the width of the pinned view port. The following seems to fix the issue.

var pinnedLeftWidth = self.renderContainers.left ? self.renderContainers.left.getViewportWidth() : 0;
var columnRightEdge = columnLeftEdge + gridCol.drawnWidth + pinnedLeftWidth;

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 a pull request may close this issue.

2 participants