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

Expandable rows expands inside the column and overlaps next row in parent grid #6222

Open
csfanse opened this issue May 17, 2017 · 4 comments

Comments

@csfanse
Copy link

csfanse commented May 17, 2017

When click on '+' symbol in grid, no child grow is shown until the page is reloaded. Once parent grid is loaded, I need to reload whole page. Once reload, I can see grid when '+' symbol is clicked.

Is there any bug in ui-grid related to this?

EDIT:
Upon investigation, I found that ui-grid does not set 'expandableRow' angular property until page is reloaded. If I am not wrong, that property is coming from below code in ui-grid.js

 $templateCache.put('ui-grid/expandableScrollFiller',
"<div ng-if=\"expandableRow.shouldRenderFiller()\" ng-class=\"{scrollFiller:true, scrollFillerClass:(colContainer.name === 'body')}\" ng-style=\"{ width: (grid.getViewportWidth()) + 'px', height: row.expandedRowHeight + 2 + 'px', 'margin-left': grid.options.rowHeader.rowHeaderWidth + 'px' }\"><i class=\"ui-grid-icon-spin5 ui-grid-animate-spin\" ng-style=\"{'margin-top': ( row.expandedRowHeight/2 - 5) + 'px', 'margin-left' : ((grid.getViewportWidth() - grid.options.rowHeader.rowHeaderWidth)/2 - 5) + 'px'}\"></i></div>"

);

Is there something related to caching issue?

@JieLiuRiver
Copy link

I have this problem too

@csfanse
Copy link
Author

csfanse commented May 18, 2017

@stupidWall Which problem are you talking about?
Issue#1 or Issue#2?

Issue#1 is resolved so I am removing it from this question?

@JieLiuRiver
Copy link

JieLiuRiver commented May 21, 2017 via email

@alokdida
Copy link

alokdida commented Oct 5, 2017

I am also facing the same issue. It's happening for normal grid rendering only. It's not happening every-time.

Attaching screenshot for reference.

Please share the solution if someone has resolved it.

image

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

4 participants