I have a few elements in a group. That group is contained in frame. If I select Vertical layout, the elements now placed in horizontal line, and if I select Horizontal layout, the placement would be vertical.
If I do the same while the group is not in that frame, the result would be as expected.

