Re-layout when ratio changes.