onSizeChanged

public final Unit onSizeChanged(Size size)

Called (or call it) when the size of the view changes.

It updates the drawer position and center.

Parameters

size

The size of the view.

Throws

If any of the position coordinates is negative.