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

duplicate preload-node hiding content #647

Closed
gerpres opened this issue Jul 3, 2013 · 1 comment
Closed

duplicate preload-node hiding content #647

gerpres opened this issue Jul 3, 2013 · 1 comment

Comments

@gerpres
Copy link

gerpres commented Jul 3, 2013

I'm displaying a dgrid in a contentpane in a border-container.

there're about 30 rows in the grid. via store.notify, those rows are removed after some time.

if the grid is empty, I remove the contentpane from the border-container to hide the grid.

if the dgrid's store gets notified of new content, the grid._onNotification() callback is triggered. then I re-add the contentpane to the border-container.

the new row(s) exist in the DOM, but aren't displayed, because it's hidden behind a preload-node (dgrid-preload). in fact, there are two preload-nodes in the grid.

if I remove the large preload-node via firebug, everything is fine.
I don't exactly know, where the second preload-node is created.

@gerpres
Copy link
Author

gerpres commented Jul 3, 2013

just found out what's the actual problem - it's not hiding/showing it again, but if all rows are removed via notify(), adding a new row again via notify() inserts it after the second dgrid-preload node, not between them.

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