From a688d4a063308bad989fee08881596f7c7b39c6b Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Mon, 2 Aug 2010 19:56:37 +0200 Subject: [PATCH] center windows instead of aligning them with the button that opens them --- htdocs/js/buttoniframewindow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/js/buttoniframewindow.js b/htdocs/js/buttoniframewindow.js index 5ee6a4a..0558bf8 100644 --- a/htdocs/js/buttoniframewindow.js +++ b/htdocs/js/buttoniframewindow.js @@ -48,7 +48,7 @@ Ext.ux.ButtonIframeWindow = function( config ){ mysize = this.getSize(); winsize = this.wnd.getSize(); this.wnd.setPosition( - mypos[0] + mysize.width - winsize.width, + (window.viewsize.width - winsize.width) / 2, mypos[1] - winsize.height ); }