Sha256: 2cc3486c6b7c5d54b8db8c1ee3a78fea047b4cc0f389cfc8d4b1bfe9ed525328

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

module ProMotion
  class MeasureHelper
    class << self
      def content_height(view)
        height = 0
        view.subviews.each do |sub_view|
          $stderr.puts sub_view
          next if sub_view.isHidden
          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

1 entries across 1 versions & 1 rubygems

Version Path
ProMotion-0.2.0 lib/ProMotion/helpers/MeasureHelper.rb