Skip to main content
Solved

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

  • September 29, 2022
  • 3 replies
  • 945 views

Branislav_Toman

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.

Best answer by tank666

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

node.resize(200, node.height)
View original

3 replies

tank666
  • 4873 replies
  • September 29, 2022

Just specify the node’s current height.

figma.com

Branislav_Toman

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.


tank666
  • 4873 replies
  • Answer
  • September 29, 2022

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

node.resize(200, node.height)

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings