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

Version Path
ProMotion-0.7.3 lib/ProMotion/helpers/measure_helper.rb
ProMotion-0.7.2 lib/ProMotion/helpers/measure_helper.rb
ProMotion-0.7.1 lib/ProMotion/helpers/measure_helper.rb
ProMotion-0.7.0 lib/ProMotion/helpers/measure_helper.rb
ProMotion-0.6.5 lib/ProMotion/helpers/measure_helper.rb
ProMotion-0.6.4 lib/ProMotion/helpers/measure_helper.rb
ProMotion-0.6.3 lib/ProMotion/helpers/measure_helper.rb
ProMotion-0.6.2 lib/ProMotion/helpers/measure_helper.rb
ProMotion-0.6.1 lib/ProMotion/helpers/measure_helper.rb
ProMotion-0.6.0 lib/ProMotion/helpers/measure_helper.rb
ProMotion-0.5.2 lib/ProMotion/helpers/measure_helper.rb
ProMotion-0.5.0 lib/ProMotion/helpers/measure_helper.rb
ProMotion-0.4.1 lib/ProMotion/_helpers/measure_helper.rb
ProMotion-0.4.0 lib/ProMotion/_helpers/measure_helper.rb