resolveWidth

fun resolveWidth(key: C, spec: ColumnSpec<*, C, *>? = null): Dp

Resolves the effective width for a column given its key and optional spec.

Resolution priority:

  1. User-resized width from widths

  2. Spec-defined width from spec

  3. Default width from TableDimensions.defaultColumnWidth

Return

effective column width

Parameters

key

column key

spec

optional column spec; if null, only widths and default are considered