Closed pedia closed 3 years ago
Good find!
Your comments are swapped though? (// render children < - > // render self
)
Do you want to make a PR for this?
Yes, comments should be swapped.
Sorry, I changed the code, but it's not worked properly. I think there are more bugs in position of children component related to its parent(translate).
How are you positioning your components? Are you aware that the children are supposed to be positioned in relation to their parent, and not to the absolute top left corner?
Yes, children's position is relative to their parent.
So what is the problem that you are having with the positioning @pedia?
I realized we have to do this differently, since prepareCanvas
is called in super and it should always be called first.
@spydon Yes, I test a little This commit fixed. But it's ugly. Maybe there is better solution.
@spydon Yes, I test a little This commit fixed. But it's ugly. Maybe there is better solution.
Yeah, it would be nicer to not have all subclasses having to run prepareCanvas
@pedia now it is solved, we'll release the fix with rc7 which should be released in the coming days (maybe even today)
Great,👍👍👍
It is now released, please try if it works like you expect it to
Current bug behaviour
Parent render above its children.
Expected behaviour
Parent should render under its children.
Steps to reproduce
Then
parent.png
render abovechild.png
. Is this right? Affected components are:SpriteComponent
andSpriteAnimationComponent
normally.Flutter doctor output
More environment information
Now:
should be: