-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Expandable grids freak out when resized #2074
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
Comments
Maybe similar to this #2063 |
This seems to be related to #1947 actually. |
Its a transient flash but it lasts for a noticeable amount of time. |
@c0bra If you had time to look into this where would you start? |
Not @c0bra, but I did look at a similar issue at one point, which came down to the order in which things were being rendered. The rendering wasn't taking the pinned column (and therefore the left render container) into account when first rendering, so we got a flash of the two renderContainers one above the other. That issue was resolved in #1848 and #1849, so the changes I made in there might give some hints. It's much harder to address on resize, as it's so transient. With the initial render that I looked at I could at least set a breakpoint and then step through the widths of the left and body render containers, and the overall canvas. Ultimately the problem was to do with the "adjusters" which tell the body render container to leave space for the pinned columns. It wouldn't surprise me if that were also the issue here. I guess you could head for a console.log on the width of those two containers, or write out some information from GridRenderContainer.getViewportWidth - likely that would give some tips as to what is going on. |
I fixed #1957, which was a similar issue to do with pinned columns. I suspect it has also fixed this one, could you retest? |
I'll check it out I've not tried using the project from sources before. |
Any progress with checking this out? |
Sorry, I'm no longer using ui grid so I haven't had a chance to try this
|
OK, I'll assume that it's covered then, it will get re-raised if someone else sees it again. |
If a grid is configured to have expandable option and re-sizable when you resize the grid it will "freak out" and bounce out of its container when you reduce the amount of space for the grid. This issue happens in chrome 38, IE 11 and firefox 26.

I've captured a screenshot.
The text was updated successfully, but these errors were encountered: