The .../canvas/canvas indicates lossage in LzNode._dbg_name. I'm not sure what it could be, it has a test right at the top:

        if (node === canvas) { return ''; }

but somehow it looks like it is recursing.

On 2009-08-28, at 15:36EDT, Henry Minsky wrote:

I traced the width and height of the canvas clickcontainerdiv, and it seems
to be getting nulled out at some point by the setwidth and setheight
setters.

There's something weird about how the debugger is printing the canvas
clickdiv as well, it has lots of /canvas/canvas/canvas in the path.

It gets set in the constructor to "100%" and "80%"
INFO: construct __LZclickcontainerdiv width,height:
  «HTMLDivElement#0|
#document/html[2]/body/div#lzappContainer[2]/ div#lzcanvasclickdiv[3]» 100%
80%


but then in the setWidth and setHeight, empty values are getting set for
width and height.

I put in a debug print like this, and it prints out an empty value

LzSprite.prototype.setHeight = function ( h ){
...
...
       if (this.isroot) {
           if (this.quirks.fix_clickable) {
// this.__LZclickcontainerdiv.style.height =
h;
               Debug.info('setting
this.__LZclickcontainerdiv.style.height', this.__LZclickcontainerdiv,
this.__LZclickcontainerdiv.style.height);



INFO: setting this.__LZclickcontainerdiv.style.width
  «HTMLDivElement#0|
…/canvas/canvas/canvas/canvas/canvas/canvas/canvas/canvas/canvas/ canvas/canvas/canvas/canvas/canvas/canvas/canvas/canvas/canvas/ @sprite/@__LZclickcontainerdiv/div.lzcanvasclickd...@style="display:
none;"]»

INFO: setting this.__LZclickcontainerdiv.style.height
«HTMLDivElement#0|
…/canvas/canvas/canvas/canvas/canvas/canvas/canvas/canvas/canvas/ canvas/canvas/canvas/canvas/canvas/canvas/canvas/canvas/canvas/ @sprite/@__LZclickcontainerdiv/div.lzcanvasclickd...@style="display:
none;"]»


Reply via email to