make popups more predictable

Related to https://github.com/ArcBees/GWTP/issues/554
Ok, I'll remove them then.


On Wed, Aug 27, 2014 at 4:46 PM, christiangoudreau <notifications@github.com
> wrote:

> In
> gwtp-core/gwtp-mvp-client/src/main/java/com/gwtplatform/mvp/client/view/CenterPopupPositioner.java:
>
> > + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
> > + * License for the specific language governing permissions and limitations under
> > + * the License.
> > + */
> > +package com.gwtplatform.mvp.client.view;
> > +
> > +import com.google.gwt.user.client.Window;
> > +
> > +/**
> > + * Positions the poup in the center of the screen
> > + */
> > +public class CenterPopupPositioner extends PopupPositioner {
> > +    @Override
> > +    public PopupPosition getPopupPosition(final int popupWidth, final int popupHeight) {
> > +        final int left = (Window.getClientWidth() - popupWidth) / 2;
> > +        final int top = (Window.getClientHeight() - popupHeight) / 2;
>
> I swear, we didn't talk together before double posting mostly the same
> thing! LOL
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ArcBees/GWTP/pull/555/files#r16779501>.
>