Sha256: 4c8b5c652d103f7553415dfb75a4f5720466e411b4c65f976bcb11a04301cd83
Contents?: true
Size: 555 Bytes
Versions: 14
Compression:
Stored size: 555 Bytes
Contents
module ProMotion class MeasureHelper class << self 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 end end end
Version data entries
14 entries across 14 versions & 1 rubygems