Fix bug 1030791: popup visibility on iphone