Merge pull request #39 from macfanatic/remove_duplicate_content_height

Removed duplicate method definition
This commit is contained in:
Jamon Holmgren
2013-03-20 10:00:32 -07:00

View File

@@ -27,17 +27,5 @@ module ProMotion
return self.view.frame
end
def content_height(view)
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
end
end