Revert "[gui] don't set <width> to the parent if <width>auto</width> is specified."

This reverts commit 650829f8ab950f5bc2c98233aa67c91bf82697a7.