Sha256: 96663f64db4ee7675089bb78262f270617795737429a69b6f17eb5bca6299397
Contents?: true
Size: 558 Bytes
Versions: 4
Compression:
Stored size: 558 Bytes
Contents
module ProMotion class MeasureHelper class << self def content_height(view) PM.logger.deprecated "`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
4 entries across 4 versions & 1 rubygems