Merge branch 'acet-fix-tooltip-placement' into 'master'

Fix markdown preview tooltip cut off issue

Closes #31748

See merge request !12367
This commit is contained in:
Jacob Schatz 2017-07-06 19:01:04 +00:00
commit 46ccda86fb

View file

@ -30,6 +30,8 @@ module Banzai
attributes = attributes.reject { |_, v| v.nil? }
attributes[:reference_type] ||= self.class.reference_type
attributes[:container] ||= 'body'
attributes[:placement] ||= 'bottom'
attributes.delete(:original) if context[:no_original_data]
attributes.map do |key, value|
%Q(data-#{key.to_s.dasherize}="#{escape_once(value)}")