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

Bug - Grid is showing as two separated parts #2542

Closed
elpd opened this issue Jan 13, 2015 · 2 comments
Closed

Bug - Grid is showing as two separated parts #2542

elpd opened this issue Jan 13, 2015 · 2 comments
Assignees
Milestone

Comments

@elpd
Copy link

elpd commented Jan 13, 2015

Just trying out today ui-grid. Version 3.0.0-rc.16 on Chrome and Firefox with expandable plugin.
This is what I get:
angualr-grid

When I resize manually the browser window, it returns to normal.

@elpd elpd changed the title Bug - Grid is showing as two seperated parts Bug - Grid is showing as two separated parts Jan 13, 2015
@PaulL1 PaulL1 added this to the 3.0 milestone Jan 14, 2015
@PaulL1
Copy link
Contributor

PaulL1 commented Jan 14, 2015

There is a known issue with this on http://ui-grid.info/docs/#/tutorial/401_AllFeatures. I'm not sure it's logged, so I'll make this issue that master for that problem.

@PaulL1
Copy link
Contributor

PaulL1 commented Jan 16, 2015

On initial rendering of this tutorial, the width of the header viewport is set to NaNpx, which then doesn't seem to render well. Once data is populated, or resize is called, or anything else that triggers a grid refresh, the width is set to 470px, and the grid isn't 'broken'.

Tracked this down to the width calculations in ui-grid-render-container.js, and in particular the adjustors once the selection column is present. Sometimes the drawnwidth isn't present (column not drawn yet), in this case use width instead. Sometimes the calls aren't sequenced as we expect, so if there isn't a calculated width, call updateWidth first.

@PaulL1 PaulL1 closed this as completed in a684c17 Jan 16, 2015
PaulL1 added a commit that referenced this issue Jan 16, 2015
Fix #2542 (renderContainer): mis-render on 401 on initial render
@c0bra c0bra removed the in progress label Jan 16, 2015
PaulL1 added a commit to PaulL1/ng-grid that referenced this issue Jan 16, 2015
PaulL1 added a commit that referenced this issue Jan 16, 2015
fix #2542 (resize): juddering when resizing a pinned grid
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