make popups more predictable

Related to https://github.com/ArcBees/GWTP/issues/554
not yet, we want to keep Java 6 compatibility for the moment.