UINavigationBar isHidden bugfix

When the navigation bar is hidden via the hidden value of the UINavigationBar the calculation of the position is done wrong.

I added a new static method to fix this bug. I think this should be added to the develop branch as well.