[layouts] Use BaseLayoutManager.isVertical() in Lanes
[layouts] Factor out lane size calculation in Lanes