Skip to main content

How to resize only width and leave height of a frame node unchanged?

resize() function asks me for two properties and can’t leave the one for height empty.

Just specify the node’s current height.

figma.com

I get error saying it is read only property:

image


When I use resize() I need to specify height as well, which I am trying to leave unchanged.


I meant that you need to specify the node’s current height in the resize() method.


node.resize(200, node.height)

Reply