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

Moving dialog off screen can cause issues #82

Closed
mikeazo opened this issue Nov 18, 2015 · 4 comments
Closed

Moving dialog off screen can cause issues #82

mikeazo opened this issue Nov 18, 2015 · 4 comments
Labels

Comments

@mikeazo
Copy link

mikeazo commented Nov 18, 2015

Here is my jsfiddle and an animated image.

alertify

As you can see, I can move the dialog off the screen, then I can't move it back or close it.

Is there a good way to handle this?

@MohammadYounes
Copy link
Owner

Re-sizing the window will reset the dialog position, and pressing ESC key would close it.

May be I add an option to prevent the dialog from going off-screen ?

@mikeazo
Copy link
Author

mikeazo commented Nov 18, 2015

If adding that option is possible, that would be awesome. In my use case ESC and resizing won’t do the trick.

On Nov 18, 2015, at 3:10 PM, Mohammad Younes notifications@github.com wrote:

Re-sizing the window will reset the dialog position, and pressing ESC key would close it.

May be I add an option to prevent the dialog from going off-screen ?


Reply to this email directly or view it on GitHub.

@MohammadYounes
Copy link
Owner

To be added, Thanks!

@MohammadYounes
Copy link
Owner

New option moveBounded available as of 1.6

http://jsfiddle.net/7acmL09b/1/

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants