Skip to content

Reset column width after column move #4188

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

Closed
ghost opened this issue Aug 14, 2015 · 6 comments
Closed

Reset column width after column move #4188

ghost opened this issue Aug 14, 2015 · 6 comments

Comments

@ghost
Copy link

ghost commented Aug 14, 2015

When I change column position with mouse, this reset column width to default width.

@ingshtrom
Copy link
Contributor

+1

I am seeing this too. You can see this happen in one of the tutorials: http://ui-grid.info/docs/#/tutorial/401_AllFeatures. I am seeing this on v3.0.4 with Angular v1.3.16 at work. It looks like the tutorial is using UI-Grid v3.0.4 and Angular v1.4.3.

Steps to reproduce:

  1. resize the "Id" column header to an abnormally larger size
  2. click+drag the "Name" column header to the right of the "Age" column header

Expected: the "Name" and "Age" column headers switch places while the "Id" column retains its width
Actual: the "Name" and "Age" column headers switch places, BUT the "Id" column's width is reset to be the same width it was when the page was first loaded.

@ingshtrom
Copy link
Contributor

This bug is a big problem for our business, so I started work on this without guarantee that it will get merged into the ui-grid official repo. Anywho, I noticed that I can only reproduce this in the Angular app at work and on the ui-grid.info site. When I run the tutorials locally, I don't run into any problems... I'll keep investigating, but any ideas why this might be happening?

@ingshtrom
Copy link
Contributor

I cannot close this, but it upon further investigation, this is fixed in the unstable code (which will become v3.0.5). You can compare the difference in behavior:

bugged: http://ui-grid.info/docs/#/tutorial/401_AllFeatures
works: http://ui-grid.info/docs/#/tutorial/401_AllFeatures

[edit]: well, I clearly didn't re-read my comment before posting. I just noticed that the url's are the same. All I did was switch between the stable and unstable versions of the tutorials.

@ghost
Copy link
Author

ghost commented Aug 27, 2015

current version is 3.0.5, but bug is not fixed

@ingshtrom
Copy link
Contributor

@tomaslaurutenas You need to be more specific with what you are seeing, then. I tested using the stable code on the ui-grid site and have pulled v3.0.5 into my local project. From what I see, it is fixed in both instances.

@ghost
Copy link
Author

ghost commented Aug 27, 2015

@ingshtrom yes, it is fixed. sorry, my mistake :)

@ghost ghost closed this as completed Aug 27, 2015
This issue was closed.
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

1 participant