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

Maximum / Restore dosn't work for containment #26

Open
fglueck opened this issue Sep 22, 2015 · 2 comments
Open

Maximum / Restore dosn't work for containment #26

fglueck opened this issue Sep 22, 2015 · 2 comments

Comments

@fglueck
Copy link

fglueck commented Sep 22, 2015

If I bind the dialog to a div and maximize it, it will grow up the hole window (this is OK) but if I restore it, it will lost the containment.

.dialog("widget").draggable("option","containment","#frameContent")

@fglueck
Copy link
Author

fglueck commented Sep 22, 2015

I try to fix it with the restore event, but the dlg parameter is an empty Object.
"restore" : function(evt, dlg){ console.log(evt,dlg);

@fglueck
Copy link
Author

fglueck commented Sep 22, 2015

A workaround is:
"restore" : function(evt, dlg){ $(evt.target).dialog("widget").draggable("option","containment","#frameContent") };

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

No branches or pull requests

1 participant