Good day.

Have trouble with bringing new window in top of other. Example:
http://kompiuteriai.init.lt this website is in Lithuanian, so to see what i
mean you need to click first on Paslaugos then Kontaktai. As you will see
Paslaugos win is hiding Kontaktai window.

I've try to use toFront() in these ways:

1. After window is opened

openWin: function(newID,menu) {

       ...

       this.openedWins[newID].setHTMLContent(data);
       this.openedWins[newID].showCenter();
       this.openedWins[newID].toFront();

   }

2. Before window is opened

openWin: function(newID,menu) {

       ...

       this.openedWins[newID].setHTMLContent(data);
       this.openedWins[newID].toFront();
       this.openedWins[newID].showCenter();

   }


3. In observer onShow

return new Window(id, {
           className: 'dialog',
           width: 600,
           height: 300,
           minWidth: 220,
           minHeight: 100,
           zIndex: 100,
           onStartResize: function(a) {

           },
           onShow: function(a) {
               this.openedWins[newID].toFront();
           },
           onClose: function(a) {
               this.openedWins[newID]=null;
               this.openedWins.compact();
               this.openedWinIDs[newID]=null;
               this.openedWinIDs.compact();
               this.winContent[newID]=null;
               this.winContent.compact();
               this.winMenu[newID]=null;
               this.winMenu.compact();
           }
       });
   },


So where is the problem?
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to