-
Notifications
You must be signed in to change notification settings - Fork 133
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
Conversation
@@ -161,11 +161,16 @@ protected void doCenter() { | |||
int top = (Window.getClientHeight() - popup.getOffsetHeight()) >> 1; |
There was a problem hiding this comment.
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.
LGTM |
getView().setCloseHandler(closeHandler); | ||
} | ||
} | ||
|
There was a problem hiding this comment.
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
Is this ready to be merged? I want to make some changes to the PopupView interface and this is blocking me. |
In any cases, if you want to do changes to popup, now is the time :D |
Fixed PopupPresenter setCloseHandler
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?