a valid implementation of vertical and horizontal Linear Layouts

Signed-off-by: ishouldgo <ishouldbegone@gmail.com>