Better calculation of omnibar text width, working with Android devices as well