iOS Question [SOLVED] Is there a way to get height of toolbar area?

Sandman

Expert
Licensed User
Longtime User
I'm using the toolbar buttons in the bottom of the screen, as provided by the designer.

I'm moving some views around a bit and to help me place them correctly I wondered if there existed a way to get the height of the toolbar area?

Looking at the debugger I can see this at NavControl -> toolbar:
B4X:
<UIToolbar: 0x16647480; frame = (0 524; 320 44); autoresize = W+TM; layer = <CALayer: 0x166476d0>>

I'm guessing the 44 in "0 524; 320 44" might be the height? But I have no idea on how to get hold of that value, and I don't want to hardcode it into my app...
 

Sandman

Expert
Licensed User
Longtime User
Well, I thought I needed to know its height as CalcRelativeKeyboardHeight didn't take the bottom toolbar into account, so when I resized a view using it, the view pas placed partly behind the toolbar. So I thought a little CalcRelativeKeyboardHeight-toolbarHeight would do the trick.

Seems that Page1.RootPanel.Height works nicely though. Thanks!
 
Upvote 0
Top