Dock

Introduction

The Dock section of the Alignment tab is used to easily adjust the variables on an instance for common layouts. All Dock options adjust the dimensions of the current instance, and most also adjust the position.

Dock buttons in the Alignment tab

Keep in mind that docking an instance does not toggle a dock state, but rather modifies variables on the instance so that it has docking behavior. This distinction has the following consequences:

  • Docking behavior can be achieved by manually modifying variable - this tab does not add any additional behavior which is not already available through the Variables tab

  • Docking cannot be undone by toggling the dock button, and pressing multiple dock buttons results in multiple dock variables being assigned which may result in undesirable behavior. To undo docking, use the CTRL+Z shortcut for undo.

Dock types

This section lists all of the dock types, provides a visual examples, and lists which variables are modified.

Top

Variable
Value

X

0

X Units

Pixels From Center

Y

0

Y Units

Pixels From Top

X Origin

Center

Y Origin

Top

Width

0

Width Units

Relative to Parent

Left

X

0

X Units

Pixels From Left

Y

0

Y Units

Pixels From Center

X Origin

Left

Y Origin

Center

Height

0

Height Units

Relative to Parent

Fill

X

0

X Units

Pixels From Center

Y

0

Y Units

Pixels From Center

X Origin

Center

Y Origin

Center

Width

0

Width Units

Relative to Parent

Height

0

Height Units

Relative to Parent

Fill Vertically

Y

0

Y Units

Pixels From Center

Y Origin

Center

Height

0

Height Units

Relative to Parent

X

0

X Units

Pixels From Right

Y

0

Y Units

Pixels From Center

X Origin

Right

Y Origin

Center

Height

0

Height Units

Relative to Parent

Fill Horizontally

X

0

X Units

Pixels From Center

X Origin

Center

Width

0

Width Units

Relative to Parent

Bottom

X

0

X Units

Pixels From Center

Y

0

Y Units

Pixels From Bottom

X Origin

Center

Y Origin

Bottom

Width

0

Width Units

Relative to Parent

Size to Children

Width

0

Width Units

Relative to Children

Height

0

Height Units

Relative to Children

Last updated

Was this helpful?