protected function _detectFormAlignment($options)
    {
        foreach (['horizontal', 'inline'] as $align) {
            if ($this->checkClasses('form-' . $align, $options)) {
                return $align;
            }
        }

        return $this->getConfig('align');
    }