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

Nested VComponent Redraw is not working easily #49

Open
sclee15 opened this issue Feb 27, 2018 · 3 comments
Open

Nested VComponent Redraw is not working easily #49

sclee15 opened this issue Feb 27, 2018 · 3 comments
Labels

Comments

@sclee15
Copy link

sclee15 commented Feb 27, 2018

I made a VComponent which has a child VComponent

when child vcomponent calls
markDirty(self)
redraw()

it doesn't redraw the child component.
I can see the change when the parent component gets update.

Thank you.

@Araq
Copy link
Collaborator

Araq commented Feb 27, 2018

Please write a simple test program demonstrating the problem. Probably we need a mechanism that propagates the dirtyness to parents.

@sclee15
Copy link
Author

sclee15 commented Feb 27, 2018

That's right. When I pass the VComponent ref to child component and do following solves the problems
but it seems there are better ways.

markDirty(self)
markDirty(parent)
redraw()

@ghost
Copy link

ghost commented Apr 26, 2018

@Araq Are you implying you can't redraw just a child component? I'd like to redraw one child but not the other. Redrawing a large canvas for example can be expensive.

@ajusa ajusa added the bug label May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants