Sha256: 732e3e33c133ecf6f3d9df0c80e9d2f2ff716305769bba06b02fc0976aac7675

Contents?: true

Size: 449 Bytes

Versions: 16

Compression:

Stored size: 449 Bytes

Contents

module BubbleWrap
  module UIViewControllerWrapper
    # Short hand to get the content frame
    #
    # Return content frame: the application frame - navigation bar frame
    def content_frame
      app_frame = App.frame
      navbar_height = self.navigationController.nil? ?
        0 : self.navigationController.navigationBar.frame.size.height
      CGRectMake(0, 0, app_frame.size.width, app_frame.size.height - navbar_height)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
bubble-wrap-1.9.7 motion/ui/ui_view_controller_wrapper.rb
bubble-wrap-1.9.6 motion/ui/ui_view_controller_wrapper.rb
bubble-wrap-1.9.5 motion/ui/ui_view_controller_wrapper.rb
bubble-wrap-1.9.4 motion/ui/ui_view_controller_wrapper.rb
bubble-wrap-1.9.3 motion/ui/ui_view_controller_wrapper.rb
bubble-wrap-1.9.2 motion/ui/ui_view_controller_wrapper.rb
bubble-wrap-1.9.1 motion/ui/ui_view_controller_wrapper.rb
bubble-wrap-1.9.0 motion/ui/ui_view_controller_wrapper.rb
bubble-wrap-1.8.0 motion/ui/ui_view_controller_wrapper.rb
bubble-wrap-1.7.1 motion/ui/ui_view_controller_wrapper.rb
bubble-wrap-1.7.0 motion/ui/ui_view_controller_wrapper.rb
bubble-wrap-1.6.0 motion/ui/ui_view_controller_wrapper.rb
bubble-wrap-1.6.0.rc1 motion/ui/ui_view_controller_wrapper.rb
bubble-wrap-1.5.0 motion/ui/ui_view_controller_wrapper.rb
bubble-wrap-1.5.0.rc1 motion/ui/ui_view_controller_wrapper.rb
bubble-wrap-1.4.0 motion/ui/ui_view_controller_wrapper.rb