calculateOffset

abstract fun calculateOffset(parentSize: IntSize, focusedMessageSize: IntSize): Int

Calculates the focused message offset.

Return

The offset that the focused message will have.

Parameters

parentSize

The size of the parent containing the Message we wish to focus.

focusedMessageSize

The size of the message we wish to focus.