]> source.dussan.org Git - jquery-ui.git/commitdiff
(no commit message)
authorScott González <scott.gonzalez@gmail.com>
Thu, 7 Jan 2010 04:47:17 +0000 (04:47 +0000)
committerScott González <scott.gonzalez@gmail.com>
Thu, 7 Jan 2010 04:47:17 +0000 (04:47 +0000)
ui/jquery.ui.dialog.js

index 5664e9b096429286da653df7ff6d34422c2a2763..b2ec2fcc1e90b61fa8b324d2a352dfc364618ce2 100644 (file)
@@ -421,6 +421,10 @@ $.widget("ui.dialog", {
                        }
                }
 
+               var isVisible = this.uiDialog.is(':visible');
+               if (!isVisible) {
+                       this.uiDialog.show();
+               }
                this.uiDialog.position({
                        my: myAt.join(' '),
                        at: myAt.join(' '),
@@ -428,6 +432,9 @@ $.widget("ui.dialog", {
                        of: window,
                        collision: 'fit'
                });
+               if (!isVisible) {
+                       this.uiDialog.hide();
+               }
        },
 
        _setOption: function(key, value){