Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed PopupPresenter setCloseHandler #544

Merged
merged 2 commits into from
Aug 24, 2014
Merged

Fixed PopupPresenter setCloseHandler #544

merged 2 commits into from
Aug 24, 2014

Conversation

meriouma
Copy link
Member

@meriouma meriouma commented Aug 8, 2014

Fix for issue #497

The popup.hide() calls throws a CloseEvent, which is not what we want. This is a bit hacky but @jDramaix added the popup.show() and popup.hide() calls, which are probably required for #302. It doesn't seems like there's a way to properly hide the popup without calling the hide() method except by using the JSNI hack. Thoughts?

@@ -161,11 +161,16 @@ protected void doCenter() {
int top = (Window.getClientHeight() - popup.getOffsetHeight()) >> 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the bit shift is too complex / 2 would be more readable.

@rdwallis
Copy link
Contributor

rdwallis commented Aug 8, 2014

LGTM

getView().setCloseHandler(closeHandler);
}
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rm 39, you seem to have two line at eof

@rdwallis
Copy link
Contributor

Is this ready to be merged? I want to make some changes to the PopupView interface and this is blocking me.

@christiangoudreau
Copy link
Member

uhm uhm, why hasn't this been merged anyway: @meriouma @Chris-V

@christiangoudreau
Copy link
Member

In any cases, if you want to do changes to popup, now is the time :D

meriouma added a commit that referenced this pull request Aug 24, 2014
Fixed PopupPresenter setCloseHandler
@meriouma meriouma merged commit 94d3fb3 into master Aug 24, 2014
@meriouma meriouma deleted the mmc_popupview branch August 24, 2014 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants