Sketch-Flex-Layout
Sketch-Flex-Layout copied to clipboard
Using Width with no Height attribute does not retain current height or position; makes it -0.1
Steps to repro:
- Make a box; for example, 100x100 dimensions positioned at the center of an artboard
- Add a class that only has a Width rule; for example, width:50
- Calculate layout; the box will move to x/y 0 with a height of -0.1 and width of 50
The behavior I expected was that the CSS would only modify the Width property of the box. Thus, the box would have width:50, height: 100, and be at the same position.