Method: MotionPrime::BaseFieldSection#container_height
- Defined in:
- motion-prime/sections/form/base_field_section.rb
#container_height ⇒ Object
178 179 180 181 182 183 |
# File 'motion-prime/sections/form/base_field_section.rb', line 178 def container_height return 0 if [:hidden] element = element(:error_message) error_height = element ? element.cached_content_height + 5 : 0 super + error_height end |