mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-05 07:00:21 +08:00
Removed duplicate method definition
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user