I am trying to place a tabBar along the botton of the display. Using “display.contentHeight” and subtracting the height of the tabBar works transitioning from “portrait” to “landscape” on the iPhone and iPhone4, but on the iPhone5, the tabBar falls off the bottom of the display unseen (“landscape” orientation on the simulator). When I print the number in “display.contentHeight”, it returns 320. But apparently the tabBar is using some other number. I have tried substituting “display.viewableContentHeight” but it acts the same. If I detect orientation and then translate, I would have to detect each device and give it a hard number to keep the tabBar viewable at the bottom. If I don’t detect each device when “translating”, the tabBar ends up floating somewhere above the bottom of the screen.
Also, the tabBar obtains by default a width of “display.contentWidth” according to the docs. However, when orientation is “landscape” the tabBar simply continues with the original width while in “portrait”. The return of “display.contentWidth” is 480 but it ignores this and stays at 320 in “landscape”. I have tried leaving tabBar.width at default and assigning it as display.contentWidth or display.viewableContentWidth, it continues to work the same.
The build file I have specifies that all orientations are supported. Placing the tabBar at the top of the display works flawlessly on all devices…is this the intention?