infinitered / rmq

RMQ - RubyMotionQuery
MIT License
307 stars 52 forks source link

When I set navbar translucent to false grid stops working #318

Open dkrusenstrahle opened 8 years ago

dkrusenstrahle commented 8 years ago

Hello,

When I set navbar translucent to false grid stops working. The grid is there but the UIViews that I have placed on first row is on third row if translucent is set to false (when true all is fine).

I tried this in both apperance.rb and style sheets.

UINavigationBar.appearance.translucent = false

UINavigationBar.appearance.tap do |o|
        o.barTintColor = rmq.color.black
        o.setTintColor rmq.color.white
        o.translucent = false

        o.setTitleTextAttributes( {
          UITextAttributeFont => rmq.font.medium,
          UITextAttributeTextColor => rmq.color.white
        })
      end

This seems to be a serious bug since I cannot even use a background image without disturbing the grid.

Base view when translucent is set to true

UIView ( root_view ) 4487615040 {l: 0, t: 0, w: 375, h: 603}

simulator screen shot 28 mars 2016 12 44 53

Base view when translucent is set to false

UIView ( root_view ) 4487615040 {l: 0, t: 64, w: 375, h: 603}

simulator screen shot 28 mars 2016 12 44 18

What is wrong? Please help. Redpotion is a seriously cool tool but me (and I guess many with me) cannot use it until this bug is fixed.

Thanks!