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

Resizing window moves dialog back to center #28

Closed
mikeazo opened this issue Mar 9, 2015 · 6 comments
Closed

Resizing window moves dialog back to center #28

mikeazo opened this issue Mar 9, 2015 · 6 comments
Labels

Comments

@mikeazo
Copy link

mikeazo commented Mar 9, 2015

Not sure if this is a bug or the desired behavior, but it is not what I expected.

When I have a dialog up and I move it to another place on the screen, then resize the window, the dialog jumps back to the center of the screen, instead of staying where I had put it.

I have tried it in both Safari and Chrome on the first alert on this page.

@MohammadYounes
Copy link
Owner

This is is the intended behavior, as the dialog might end up inaccessible!

@mikeazo
Copy link
Author

mikeazo commented Mar 9, 2015

Okay, after some more testing it wasn't as big of an issue as I had originally thought. I was trigging a download in a modeless dialog and at first that was triggering the resize. Turns out that only happened because I had the console open. With the console closed, triggering the download does not cause a screen resize.

@mikeazo mikeazo closed this as completed Mar 9, 2015
@mikeazo
Copy link
Author

mikeazo commented Mar 13, 2015

Is there a way to disable this functionality? Turns out I was wrong, in Chrome, a download causes a resize event. This causes my modeless dialogs to all go back to the center of the screen.

@MohammadYounes
Copy link
Owner

To be added.

@MohammadYounes
Copy link
Owner

autoReset option available as of 1.3

@mikeazo
Copy link
Author

mikeazo commented Mar 16, 2015

Works like a charm! Thanks! Great project, btw.

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