lib/ProMotion/helpers/MeasureHelper.rb in ProMotion-0.2.0 vs lib/ProMotion/helpers/MeasureHelper.rb in ProMotion-0.3.0
- old
+ new
@@ -2,10 +2,9 @@
class MeasureHelper
class << self
def content_height(view)
height = 0
view.subviews.each do |sub_view|
- $stderr.puts sub_view
next if sub_view.isHidden
y = sub_view.frame.origin.y
h = sub_view.frame.size.height
if (y + h) > height
height = y + h
\ No newline at end of file