Property

MinimumInteractiveLeftAlignmentLine

The vertical AlignmentLine representing the left edge of the component's original visual bounds before any additional space is added by Modifier.minimumInteractiveComponentSize to meet minimum touch target requirements.

Source set: Common

Added in 1.5.0-alpha17

val MinimumInteractiveLeftAlignmentLine = VerticalAlignmentLine(::min)

The vertical AlignmentLine representing the left edge of the component's original visual bounds before any additional space is added by Modifier.minimumInteractiveComponentSize to meet minimum touch target requirements.

When a component's width is less than the minimum interactive size (e.g., LocalMinimumInteractiveComponentSize), Modifier.minimumInteractiveComponentSize expands the layout space. This alignment line provides the offset from the left edge of the expanded bounds to the left edge of the original component content (i.e., its visual bounds). This allows other layouts to align to the component's visual left, ignoring the extra touch-target spacing.

The value of this alignment line is the amount of space added to the left of the component's original left edge. Since Modifier.minimumInteractiveComponentSize centers the content, an equal amount of space is also added to the right of the component.

Visual representation:

Expanded Layout (after Modifier.minimumInteractiveComponentSize() was applied)
+--------------------------+
|       |          |       |
|       +----------+       |
|       |Component |       |
|       +----------+       |
|       |          |       |
+--------------------------+
|  <->  |
^       ^
|       MinimumInteractiveLeftAlignmentLine
Value of MinimumInteractiveLeftAlignmentLine