Method: Playbook::PbTooltip::Tooltip#remove_height_properties

Defined in:
app/pb_kits/playbook/pb_tooltip/tooltip.rb

#remove_height_properties(combined_html_options_style) ⇒ Object



30
31
32
33
34
35
36
# File 'app/pb_kits/playbook/pb_tooltip/tooltip.rb', line 30

def remove_height_properties(combined_html_options_style)
  return nil if combined_html_options_style.nil?

  combined_html_options_style.gsub(/\s*(height|min-height|max-height)\s*:[^;]*;?\s*/, "")
                             .strip
                             .presence
end