Hi Tim,
looks like a bug to me. ui.window.MDesktop._applyActiveWindow shouldn't
call window.Manager.changeActiveWindow with the 'old' window if it's
already disposed. Could you please open a bug report for this?
Regards,
Daniel
On 03.05.2013 13:34, Tim van Oijen wrote:
> Hi,
>
> We added an override of the _applyActive function of Window.js in a
> custom extended window-class and we noticed some unexpected behavior. It
> turns out that when the window closes, the activeWindow of the MDesktop
> is set (this still makes sense). As a result, in Manager.js, the active
> state of the old active window (which can be disposed already because it
> has been closed), is reset.
>
> [Manager.js]
>
> changeActiveWindow : function(active, oldActive) {
>
> if (active) {
>
> this.bringToFront(active);
>
> active.setActive(true);
>
> }
>
> if (oldActive) {
>
> *oldActive.resetActive();*
>
> }
>
> So, although the widget has been disposed we end up in its applyActive
> function. Is this by design, or can this be treated as a bug? Or
> shouldn’t this happen at all and are we possibly doing things wrong in
> another place? We are using Qx-version 1.4.1.
>
> Thanks in advance for any help,
>
> Tim van Oijen
>
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
>
>
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel