Sha256: f307538f2c1cf2caf91403b66318399dc7643432c864653abd54457b2469446b
Contents?: true
Size: 352 Bytes
Versions: 3
Compression:
Stored size: 352 Bytes
Contents
module ProMotion class MeasureHelper class << self def content_height(view) height = 0 view.subviews.each do |sub_view| y = sub_view.frame.origin.y h = sub_view.frame.size.height if (y + h) > height height = y + h end end height end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ProMotion-0.1.2 | lib/ProMotion/helpers/MeasureHelper.rb |
ProMotion-0.1.1 | lib/ProMotion/helpers/MeasureHelper.rb |
ProMotion-0.1.0 | lib/ProMotion/helpers/MeasureHelper.rb |