with another container that gets its dimensions from the
vectorAsset
? I feel like I'm missing something.
j
Jason Ostrander
10/29/2019, 12:52 PM
I ran into this same issue. I was told it’s a bug in
DrawVector
(it always draws at the parent 0,0 coordinates) so you have to wrap it in a
Container
with the exact width/height set to the Vector size
m
Mihai Hrincescu
10/29/2019, 1:11 PM
OK, Double wrapping seems like overkill for a
DrawVector
because it generates 2 layout nodes. After looking at the current implementations i think the way to go is just to write a new component that takes some extra
prams
that just does basic canvas transforms before the draw call.