| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| const orientation = controller.interfaceOrientation; | ||
| const isPortrait = orientation !== UIInterfaceOrientation.LandscapeLeft && orientation !== UIInterfaceOrientation.LandscapeRight; | ||
| const isIconAboveTitle = (majorVersion < 11) || (isPhone && isPortrait); | ||
| console.log(`UPDATING tabItem: ${tabItem.title} --- isPortrait:${isPortrait}, isPhone:${isPhone}, version: ${majorVersion}, isIconAboveTitle: ${isIconAboveTitle}`); |
There was a problem hiding this comment.
Remove the console.log or do it as a trace?
Sorry, something went wrong.
|
test |
Sorry, something went wrong.
|
Hi, this issue is still in progress? I'm working with TabView in iOS and the problem is still present... I'm checking the different NS repository and the bug was reported a long time ago, any help I can give?? |
Sorry, something went wrong.
|
It will be best to open a new issue about it (with repro and screenshot) as it might be a different issue. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
By guidelines TabViewItems usually have icon and title and IOS positions them correctly: either side-by-side or icon above the title depending on form factor, IOS version and orientation.
Here is how icon/text are positioned in different IOS version/device/orientation combinations:
In the icon above title cases, when only one of them (icon or title), IOS leaves space for the other. That why we have to either move the title a bit up or the icon a bit down so that it is vertically centered.
In IOS version before 11, the icon is always above the title so we did the adjustment every time. However, in 11 icon is above title only for phones in portrait mode. This fix handles this case.
There is a test page in the ui-test-app -> tab-view-icon-title-placement cc @SvetoslavTsenov
Fixes #3402