Ticket #1176: CenterDialogs.patch
| File CenterDialogs.patch, 0.8 kB (added by guest, 3 months ago) |
|---|
-
XinhaDialog.js
39 39 this.modal = (options && options.modal === false) ? false : true; 40 40 this.closable = (options && options.closable === false) ? false : true; 41 41 this.layer = (options && options.layer) ? options.layer : 0; 42 this.centered = (options && options.centered === true) ? true : false; 42 43 43 44 44 45 if (Xinha.is_ie) … … 314 315 rootElemStyle.top = parseInt(this.size.top,10) + 'px'; 315 316 rootElemStyle.left = parseInt(this.size.left,10) + 'px'; 316 317 } 317 else if (this.editor.btnClickEvent )318 else if (this.editor.btnClickEvent && !this.centered) 318 319 { 319 320 var btnClickEvent = this.editor.btnClickEvent; 320 321 if (rootElemStyle.position == 'absolute')
