Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Intermittent error in CanvasItem.js

    Version: "9.0/LGPL Development Only"
    Browser: Chrome & IE 9

    Hi

    I have an application that makes several ToolStrips and adds a DynamicForm to them, as described in the documentation.

    Occasionally, after a ToolStrip has been created and then destroyed (by closing the window it is on), subsequent creation of a ToolStrip fails at line 140 of CanvasItem.js because this.canvasItem is undefined.

    I have been able to work around this by altering line 140 to test for this.canvasItem being defined, but it does not explain what is causing the problem.

    I think that the code that is trying to locate the last created item so as to determine the next Tab position is picking up a partially destroyed item from the previous ToolStrip. Unfortunately, I cannot provide an example as the bug is intermittent. It did not occur in SC 8.x

    Any ideas as to what is causing this?

    Andy

    #2
    Please show the line of code you've changed in your workaround

    Comment


      #3
      Hi

      Line 140 now looks like:

      Code:
      if (this.canvasItem)
                      this.canvasItem._getCanvasTabDescendents(this, tabStops);
      Effectively, this leaves the tabStops array empty and the fucntion returns a zero...

      Comment

      Working...
      X