Component and instance with resize to autoFebruary 25, 2020 at 1:05am
Hi, is there any way to set component and instance with 'resize to auto'?
February 26, 2020 at 7:46pm
Hi, Vivian! Currently Frames, View, Components (and other components that can contains children) automatically resized to their content size by default. If something dynacially changed (through React State, as an example), or something chaged at a code (and rendered after re-launching plugin) this components should resize yourself to new content size. If it's not working in some case that's probable bug. Can you give me more details, please, what case are you trying to solve?
February 27, 2020 at 4:03am
The frame/component/ instance with auto layout children cannot resize properly.
Here is a simple example case below:
February 27, 2020 at 8:03pm
Currently horizontalPadding/verticalPadding not used for calculating layout (through yoga-layout lib), so frame and component just get width/height equal to text (37x14). I will fix it.
February 28, 2020 at 3:30pm
March 10, 2020 at 7:05pm