Index: /trunk/modules/Dialogs/XinhaDialog.js
===================================================================
--- /trunk/modules/Dialogs/XinhaDialog.js (revision 1155)
+++ /trunk/modules/Dialogs/XinhaDialog.js (revision 1156)
@@ -998,7 +998,4 @@
   dialog.attached = false;
   
-  this.background.style.display = '';
-  this.sizeBgToDialog();
-  
   var pos = Xinha.getElementTopLeft(rootElem);
   rootElemStyle.position = "absolute";
@@ -1025,4 +1022,6 @@
   dialog.captionBar.ondblclick = function() { dialog.attachToPanel(rootElem.side); };
   
+  this.background.style.display = '';
+  this.sizeBgToDialog();
 };
 /** 
