Handle iOS6/7 layout issue