Class: ProMotion::MeasureHelper
- Inherits:
-
Object
- Object
- ProMotion::MeasureHelper
- Defined in:
- lib/ProMotion/helpers/measure_helper.rb
Class Method Summary collapse
Class Method Details
.content_height(view) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ProMotion/helpers/measure_helper.rb', line 4 def content_height(view) warn "[DEPRECATION] `MeasureHelper.content_height` is deprecated. Include the module `ScreenElements` to get access to this method (already included in Screen)." height = 0 view.subviews.each do |subview| next if subview.isHidden y = subview.frame.origin.y h = subview.frame.size.height if (y + h) > height height = y + h end end height end |