Handle tab bar hiding at the bottom of the screen