I’ve got a problem that is driving me crazy. I’m using a tab bar (icons only) and in the simulator or while running on the device with iOS my tab icons (ionicons) are jumping when switching between tabs. It looks like for a split second there’s the current icon with the same icon a few pixel below it (you can just see the top 1/5th of the icon below it for a split second).
Strangely, I have four tabs and only the first two do that, and only if they are the tabs being switched to/from.
I was playing with the CSS a while ago, and encountered the same problem as you… If so, you could try disabling all custom css and see if it still happens
I’ve removed any custom CSS and I still have the same problem. As a matter of fact, I just tried using ‘ionic start testApp tabs’ and sent it straight to Ionic View with the same problem.
I’m seeing the same behavior, icons just jumping. In my case, all tab icons jump, including those in the bottom and top, even those not linking to new route. I tried to remove all app CSS, only retained Ionic CSS but the issue still appears. Very strange.
I’m not using different icons for the on and off states, so this works for me for the time being!
I’ve noticed the same issue using both a Nexus 6 and an iPhone 6s+, so I can’t believe it’s due to the devices not having enough processing power to swap out the icons without the jumping.
Maybe it’s always been there and I’ve just never noticed it before.
Yeah, the problem is with ng-if to show/hide icon. I’ve changed to ng-show but the issue remains. Funny thing is there are many places using ng-if and ng-show without the problem. I looked for transition delay, which is usually the source of such problems in AngularJS but couldn’t find any use of such.
Anyway, if you use the same icon for both states and don’t want to modify ionic source, just include this patch somewhere in your code. (If you don’t use ES2015, just replace the templated string and const declaration.)