Thanks for a quick response!

I filed the bug as LPP-4553.

Regards,
 Dmitry

J Crowley wrote:
Hey, Dmitry.

Thanks for finding this and bringing it to our attention. The best way to log this and get it assigned and prioritized, and to keep it on our radar, would be to file a bug in our JIRA bug database, which can be found at http://jira.openlaszlo.org.

We appreciate your contribution,
J Crowley

On Aug 22, 2007, at 1:25 PM, Dmitry Kurochkin wrote:

Hi OpenLaszlo developers!

I have sent this email to dev list few weeks ago, but no one answered.
So resending to user list.


I've found a bug in basefocusview. Both 4.0.3 and 3.3.3 versions are
affected. I've tested swf8 runtime only.

Steps to reproduce:

1. Create application with canvas width and height set to 100%. Compile
it with debug enabled.
2. Set focus to some view.
3. Run LzFocus.clearFocus() in debug window to clear focus.
4. Resize browser window.

Two warnings are printed:

WARNING: base/basefocusview.lzx:234: reference to undefined property 'width'
WARNING: base/basefocusview.lzx:245: reference to undefined property
'height'

The problem is that setTarget method registers followWidth and
followHeight callbacks for canvas onwidth and onheight events.
followWidth and followHeight use target attribute and don't check for
null. But when focus is cleared target is null.

I can not understand this logic. Why we register callbacks for canvas
events but use target width/height in the callbacks? There is a similar
followXY callback for onx and ony events, but it is registered not for
canvas, and is unregistered when focus is cleared. Should width and
height handling be done in a similar way?

Regards,
  Dmitry


Reply via email to