It's me again ;)

 

I wanted to center my window to browser (win.centerToBrowser()).

 

It works, but the windowSize is than about 1px width and 1px height.

I tested it with FF2 and IE 6

Here is my code: (qx 0.6.4)

 

 

            var w1 = new qx.ui.window.Window("Einstellungen",
"icon/16/bell.png");

            w1.set({height:500, width:500});

w1.setSpace("auto", "auto", "auto", "auto");

            w1.addToDocument();    

            w1.setModal(true);

            w1.set({showMaximize:false, showMinimize:false,
resizeable:false, maxHeight:500, maxWidth:500,overflow:"auto"});

            

            var vert = new qx.ui.layout.VerticalBoxLayout;

            vert.set({width:"100%", height:"100%"});

            

            var btn1 = new
lib.Button("imagePath/icons/32/abort.png","width:100",true);//my one
buttons

            var btn2 = new
lib.Button("imagePath/icons/32/save.png","width:100",true);

            

            var buttons = new Array(btn1, btn2);

            var buttonBar = new lib.ButtonBar(buttons,
"imagePath/buttonBar.gif","","");//my one buttonbar

            

                        btn1.addEventListener("click",function(){

                        w1.close();

            });

            btn2.addEventListener("click",function(){

                        alert("todo: Daten speichern");

                        w1.close();

            });

            

            

            

            vert.add(obj,buttonBar);

            

            w1.add(vert);

            w1.centerToBrowser();

            w1.open();

 

 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to