I managed to work around it by using the "restore" event before the "resize" 
one.

Try this code in the playground, it's quirky for me (i.e. sometimes it triggers 
when I maximize/restore and other times nothing happens).

var win = new qx.ui.window.Window("First Window");
win.setWidth(300);
win.setHeight(200);
win.setShowMinimize(false);

this.getRoot().add(win, {left:20, top:20});

win.addListener("resize", function(e){
  alert(win.getWidth() + ' - ' + win.getHeight());


} ,this);

win.open();


I'm using Firefox 17.0

- Dagur


From: thron7 [mailto:[email protected]]
Sent: 5. nóvember 2012 08:30
To: qooxdoo Development
Subject: Re: [qooxdoo-devel] "restore" event not firing

It's very hard to tell what' s going on when you say it works in the 
Playground. Best would be if you could come up with a Playground sample that 
reproduces the issue.

T.

On 11/02/2012 07:07 PM, Dagur Páll Ammendrup wrote:
Hi,

I'm trying to catch every time a user resizes the window. I have been using the 
"resize" event and it works fine when the user resizes manually or clicks the 
maximize button. When I click the restore button however, nothing happens. I 
tried using the "restore" event but it's the same story.  This does not happen 
in the qooxdoo playground so I'm a bit confused. I'm using qooxdoo 2.0.2.

cheers,
Dagur




------------------------------------------------------------------------------

LogMeIn Central: Instant, anywhere, Remote PC access and management.

Stay in control, update software, and manage PCs from one command center

Diagnose problems and improve visibility into emerging IT issues

Automate, monitor and manage. Do more in less time with Central

http://p.sf.net/sfu/logmein12331_d2d




_______________________________________________

qooxdoo-devel mailing list

[email protected]<mailto:[email protected]>

https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to