Hi Petr,

sorry, I saw by analyzing that you are using the wrong method for 
opening windows. The "show" method makes only a window visible and not 
active. This makes this ugly behavior. The method "open" makes the 
window visible and active. Please use this method intead.

Cheers,
Chris

Petr Kobalíček schrieb:
> Of course, filled bug #2948 :)
>
> 2009/10/19 Christian Schmidt <schmidt.christ...@1und1.de>:
>   
>> Hi Petr,
>>
>> thank you for reporting. Could you please open a bug report for that and
>> assign it to me.
>>
>> Thanks,
>> Chris
>>
>> Petr Kobalíček schrieb:
>>     
>>> Hi there,
>>>
>>> Here is short test code to show that modal window behavior is not
>>> correct when creating second modal window. When second window appears
>>> the modal caption style is still in first window.
>>>
>>> Sample code:
>>>
>>> var doc = this.getRoot();
>>> var x = 0, y = 0;
>>>
>>> qx.Class.define("MyDialog",
>>> {
>>>   extend: qx.ui.window.Window,
>>>
>>>   construct: function()
>>>   {
>>>     this.base(arguments);
>>>
>>>     this.set({
>>>       minWidth: 250,
>>>       shadow: null,
>>>       showMinimize: false,
>>>       showMaximize: false,
>>>       showClose: true,
>>>       allowMinimize: false,
>>>       allowMaximize: false
>>>     });
>>>
>>>     this.setLayout(new qx.ui.layout.VBox(2));
>>>
>>>     this._button = new qx.ui.form.Button("TEST");
>>>     this._button.addListener("execute", this._onClick, this);
>>>     this.add(this._button);
>>>   },
>>>
>>>   members:
>>>   {
>>>     _onClick: function()
>>>     {
>>>       // Chain
>>>       var d = new MyDialog();
>>>       d.run();
>>>     },
>>>
>>>     run: function()
>>>     {
>>>       doc.add(this);
>>>       this.setModal(true);
>>>       this.moveTo(x, y); x += 20, y += 20;
>>>       this.show();
>>>     }
>>>   }
>>> });
>>>
>>> var dialog = new MyDialog();
>>> dialog.run();
>>>
>>> Playground:
>>>
>>> http://demo.qooxdoo.org/current/playground/#%7B%22code%22%3A%20%22var%2520doc%2520%253D%2520this.getRoot%28%29%253B%250Avar%2520x%2520%253D%25200%252C%2520y%2520%253D%25200%253B%250A%250Aqx.Class.define%28%2522MyDialog%2522%252C%250A%257B%250A%2520%2520extend%253A%2520qx.ui.window.Window%252C%250A%2520%2520%250A%2520%2520construct%253A%2520function%28%29%250A%2520%2520%257B%250A%2520%2520%2520%2520this.base%28arguments%29%253B%250A%2520%2520%2520%2520%250A%2520%2520%2520%2520this.set%28%257B%250A%2520%2520%2520%2520%2520%2520minWidth%253A%2520250%252C%250A%2520%2520%2520%2520%2520%2520shadow%253A%2520null%252C%250A%2520%2520%2520%2520%2520%2520showMinimize%253A%2520false%252C%250A%2520%2520%2520%2520%2520%2520showMaximize%253A%2520false%252C%250A%2520%2520%2520%2520%2520%2520showClose%253A%2520true%252C%250A%2520%2520%2520%2520%2520%2520allowMinimize%253A%2520false%252C%250A%2520%2520%2520%2520%2520%2520allowMaximize%253A%2520false%250A%2520%2520%2520%2520%257D%29%253B%250A%2
>>>  
>>> 520%2520%2520%2520%250A%2520%2520%2520%2520this.setLayout%28new%2520qx.ui.layout.VBox%282%29%29%253B%250A%250A%2520%2520%2520%2520this._button%2520%253D%2520new%2520qx.ui.form.Button%28%2522TEST%2522%29%253B%250A%2520%2520%2520%2520this._button.addListener%28%2522execute%2522%252C%2520this._onClick%252C%2520this%29%253B%250A%2520%2520%2520%2520this.add%28this._button%29%253B%250A%2520%2520%257D%252C%250A%250A%2520%2520members%253A%250A%2520%2520%257B%250A%2520%2520%2520%2520_onClick%253A%2520function%28%29%250A%2520%2520%2520%2520%257B%250A%2520%2520%2520%2520%2520%2520%252F%252F%2520Chain%250A%2520%2520%2520%2520%2520%2520var%2520d%2520%253D%2520new%2520MyDialog%28%29%253B%250A%2520%2520%2520%2520%2520%2520d.run%28%29%253B%250A%2520%2520%2520%2520%257D%252C%250A%250A%2520%2520%2520%2520run%253A%2520function%28%29%250A%2520%2520%2520%2520%257B%250A%2520%2520%2520%2520%2520%2520doc.add%28this%29%253B%250A%2520%2520%2520%2520%2520%2520this.setModal%28true%29%253B%250A%2520%252
>>>  
>>> 0%2520%2520%2520%2520this.moveTo%28x%252C%2520y%29%253B%2520x%2520%252B%253D%252020%252C%2520y%2520%252B%253D%252020%253B%250A%2520%2520%2520%2520%2520%2520this.show%28%29%253B%250A%2520%2520%2520%2520%257D%250A%2520%2520%257D%250A%257D%29%253B%250A%250Avar%2520dialog%2520%253D%2520new%2520MyDialog%28%29%253B%250Adialog.run%28%29%253B%250A%250A%22%7D
>>>
>>>
>>>       
>> --
>> Christian Schmidt
>> Software Entwickler
>>
>> 1&1 Internet AG - Web Technologies
>> Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
>> schmidt.christ...@1und1.de
>>
>> Amtsgericht Montabaur / HRB 6484
>> Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
>> Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver 
>> Mauss, Jan Oetjen
>> Aufsichtsratsvorsitzender: Michael Scheeren
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> qooxdoo-devel mailing list
>> qooxdoo-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>     
>
>
>
>   


-- 
Christian Schmidt
Software Entwickler

1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
schmidt.christ...@1und1.de

Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver 
Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to