Index: XinhaDialog.js
===================================================================
--- XinhaDialog.js	(revision 1016)
+++ XinhaDialog.js	(working copy)
@@ -39,6 +39,7 @@
   this.modal = (options && options.modal === false) ? false : true;
   this.closable = (options && options.closable === false) ? false : true;
   this.layer = (options && options.layer) ? options.layer : 0;
+  this.centered = (options && options.centered === true) ? true : false;
   
   
   if (Xinha.is_ie)
@@ -314,7 +315,7 @@
       rootElemStyle.top =  parseInt(this.size.top,10) + 'px';
       rootElemStyle.left = parseInt(this.size.left,10) + 'px';
     }
-    else if (this.editor.btnClickEvent)
+    else if (this.editor.btnClickEvent && !this.centered)
     {
       var btnClickEvent = this.editor.btnClickEvent;
       if (rootElemStyle.position == 'absolute')

