Sha256: 3c4083da6ecd8e0a1564c139239059543b213843424b56e3e0b9066763c63df4

Contents?: true

Size: 710 Bytes

Versions: 5

Compression:

Stored size: 710 Bytes

Contents

# Example:
#     Teacup::Stylesheet.new :main do
#       style :root,
#         # stays centered and grows in height
#         autoresizingMask: left|right|height
#     end
module Teacup
  class Stylesheet

    def none
      UIViewAutoresizingNone
    end

    def flexible_left
      UIViewAutoresizingFlexibleLeftMargin
    end

    def flexible_width
      UIViewAutoresizingFlexibleWidth
    end

    def flexible_right
      UIViewAutoresizingFlexibleRightMargin
    end

    def flexible_top
      UIViewAutoresizingFlexibleTopMargin
    end

    def flexible_height
      UIViewAutoresizingFlexibleHeight
    end

    def flexible_bottom
      UIViewAutoresizingFlexibleBottomMargin
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
teacup-1.0.4 lib/teacup/stylesheet_extensions/autoresize.rb
teacup-1.0.3 lib/teacup/stylesheet_extensions/autoresize.rb
teacup-1.0.2 lib/teacup/stylesheet_extensions/autoresize.rb
teacup-1.0.1 lib/teacup/stylesheet_extensions/autoresize.rb
teacup-1.0.0 lib/teacup/stylesheet_extensions/autoresize.rb