Sha256: cd594f92797c440effaa71720d618d1a089fc3b0d16522bf16df2cbff1ab0001

Contents?: true

Size: 275 Bytes

Versions: 6

Compression:

Stored size: 275 Bytes

Contents

module MotionPrime
  class LabelElement < BaseElement
    include MotionPrime::ElementTextHeightMixin

    after_render :size_to_fit

    def size_to_fit
      if computed_options[:size_to_fit] || style_options[:size_to_fit]
        view.sizeToFit
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
motion-prime-0.1.7 motion-prime/elements/label.rb
motion-prime-0.1.6 motion-prime/elements/label.rb
motion-prime-0.1.5 motion-prime/elements/label.rb
motion-prime-0.1.4 motion-prime/elements/label.rb
motion-prime-0.1.3 motion-prime/elements/label.rb
motion-prime-0.1.2 motion-prime/elements/label.rb