mform groups not belonging to a fieldset display badly in core themes whose parent is Canvas

Details

this issue will be fixed if browsing the attached zip file, each mform element will be well drawn. I added few mform elements to the first release if test.zip in order to evaluate label vertical alignment too.

this issue will be fixed if browsing the attached zip file, each mform element will be well drawn. I added few mform elements to the first release if test.zip in order to evaluate label vertical alignment too.

Description

by adding a group to a moodleform with $mform->addGroup
if the group is not contained in a fieldset, its position in the form is strongly on the right in formal_white.

I am sorry, but I noticed this issue by coding!
I did not find any other instance in moodle core of this situation so... the only way to test this bug is to add to a moodleform BEFORE an 'header 'a code like: