Skip to main content

scaleY

Type​

property

Summary​

Sets the vertical scaling of an object by adjusting its height

Syntax​

set the scaleY of object to <number>[%]

Description​

Use the scaleY property to scale an object vertically in pixels or as a percentage of its height. This property can only be set, getting the value will return empty.

When set, it adjusts the object by updating its height relative to the current height.

Examples​

# Increase height by 100 pixels
set the scaleY of btn "MyButton" to 100
# Increase height by half the current height
set the scaleY of btn "MyButton" to "50%"

Value​

NameTypeDescription

value

The amount to scale the object vertically. Can be:

  • A number (in pixels)
  • A percentage (e.g., "50%") relative to the object's height

Compatibility and Support​

OS

mac

windows

linux

ios

android

Platforms

desktop

mobile

web