UIBoxLayout: Fix spacing bug in layouts