Hi,
is it possible for you to create a playground demo of this issue? This would
help us to reproduce this issue.
Regards,
Alex
On Monday 27 June 2011 05:17:21 arnis_andy wrote:
> I'm running into an issue which I can reliably reproduce by
> programmatically closing a window when a tooltip for a contained widget is
> still visible. The way I first encountered it was by having a key handler
> dismiss the window (calling default "OK" buttons execute method via key
> handler if Enter pressed.) I event tried hiding the tooltip via the
> global tooltip Manager, but still get the error.
>
> The error is encountered in the qx.ui.core.Widget.renderLayout() on line
> 1076 (when called for the tootip) when the styles are attempted to be set
> on the container, which no longer exists (is null)
>
> Here's some example code that is part of my Window's constructor:
> ...
> // Add key handlers
> function keyHandler(keyEvent) {
> var key = keyEvent.getKeyIdentifier();
>
> // Hide any shown tooltip.
> var tooltip = qx.ui.tooltip.Manager.getInstance().getCurrent();
>
> if ( tooltip !== null ) {
> tooltip.hide(); // This didn't work
> }
> if (key === "Enter") {
> this.__okButton.execute();
> } else if (key === "Escape") {
> this.__cancelButton.execute();
> }
> }
> this.addListener("keypress", keyHandler, this);
> ...
>
> So:
> (1) What's the right dismiss the tooltip before closing the window?
> Normally the tooltip would be dismissed a window would be closed via mouse
> action and the mouse actions leading up to the clicks would have caused the
> tooltip to be closed.
> (2) Is this a qooxdoo bug or just bad form on my part?
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel