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

[3.0][Column Resize] Column resize function works incorrectly after hiding columns #1697

Closed
namminh2005 opened this issue Oct 3, 2014 · 3 comments
Assignees
Milestone

Comments

@namminh2005
Copy link

After hiding some columns, i try to resize other visible columns but sometime it works incorrectly.

You can reproduce it by following these steps:

Step 1: Go to tutorial "401 All Feature" and refresh data
Step 2: Hide Address.Street column
Step 3: Try to resize Age column to right side few times

BUG: Sometime Address.City is resized instead of Age column. It happens to the other columns as well.

If you can't reproduce it or there is any point you dont understand, pls tell me.

Thank you. I'm looking forward to you response.

Write Preview Parsed as Markdown Edit in fullscreen

@PaulL1 PaulL1 self-assigned this Oct 4, 2014
@PaulL1 PaulL1 added this to the 3.0 milestone Oct 4, 2014
@c0bra
Copy link
Contributor

c0bra commented Oct 8, 2014

OK I understand the issue. The column resizer is actually TWO elements. One at the end of the column on the left, and one at the end of the column on the right. Each element is 5px wide or so, creating a 10px-wide draggable area with which you can resize.

The problem is that when you click the left element, you're resizing the column it is IN. When you click the right element, you are resizing the column to the LEFT of the column it is in.

Then when you remove columns, all of a sudden the column you were referencing is gone. I believe that's the underlying issue, at least of a sort.

@PaulL1
Copy link
Contributor

PaulL1 commented Oct 14, 2014

Right, so when you drag on the very right of the left hand column, it works fine, but when you drag on the very left of the right hand column, it gets the wrong column. Interesting. Not really sure why I assigned this to myself, I might have thought I knew something about it, but I really don't. :-)

@PaulL1 PaulL1 removed their assignment Oct 14, 2014
@PaulL1 PaulL1 self-assigned this Jan 22, 2015
@PaulL1
Copy link
Contributor

PaulL1 commented Jan 23, 2015

I've fixed this, I did quite a big refactor on resize to achieve it. The tutorial now includes column move to make it easier to see this working.

@PaulL1 PaulL1 closed this as completed Jan 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants