Announcement

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

    Intermittent problem with rendering Canvas Item within Dynamic Form

    This problem is appearing for us on occasion using the latest SmartGWT EE release.

    We have a dynamic form that has many standard data entry widgets (text fields, pull-downs, etc) at the top of the form, and a large canvas item at the bottom. What will happen sometimes is that when the form is re-opened/re-displayed after saving data, the canvas item will render over (on top of) the other form items instead of at the bottom.

    This can be immediately fixed by resizing the display elements, but this is not a long-term or user-friendly solution for the problem.

    Has anyone else seen this sort of behavior, or have any suggestions for fixing?

    #2
    The only known thing that could cause that would be a JavaScript error sometime during form rendering, from an invalid setting, an override that crashed (like a formatter), or finally, maybe a bug. So next time you get it to happen, check the Developer Console and look for a stack trace.

    Comment


      #3
      I'm having the same problem. I don't see anything in the dev console until I nudge the window which causes the CanvasItem to return to it's proper position. Here is what shows up on the console at that point.

      SmartClient Version: SC_SNAPSHOT-2010-10-03/EVAL Deployment
      Code:
      15:55:06.113:MUP9:WARN:Log:TypeError: _5 is undefined
          [c]EventHandler.handleDragStop()
          EventHandler._handleMouseUp([object MouseEvent], undef)
          [c]EventHandler.handleMouseUp(_1=>[object MouseEvent])
          [c]EventHandler.dispatch(_1=>isc_c_EventHandler_handleMouseUp,  _2=>[object MouseEvent])
          anonymous([object MouseEvent])
          unnamed()
      
      15:55:17.492:SCR0:WARN:drawing:isc_PoItemAssortment1DLayout_5:draw() called on widget with current drawn state: handleDrawn, ignoring.
          Class.getStackTrace(_1=>undef,  _2=>undef,  _3=>undef,  _4=>undef)
          Canvas.readyToDraw()
          ListGrid.draw(_1=>undef,  _2=>undef,  _3=>undef,  _4=>undef)
          anonymous()
          CanvasItem.sizeCanvas(_1=>undef)
          CanvasItem.getElementHTML(_1=>"", null)
          FormItem.$15r(_1=>null,  _2=>true,  _3=>true)
          FormItem.getInnerHTML(_1=>null,  _2=>true,  _3=>true,  _4=>undef)
          DynamicForm.getInnerHTML()
          anonymous()
      
       [Complete stack trace logged via Firebug: FBugTrace2]

      Comment


        #4
        I also notice this error in the Eclipse console.

        Uncaught JavaScript exception [uncaught exception: com.google.gwt.core.client.JavaScriptException: (null): null] in , line 0

        Comment


          #5
          This pretty much confirms a crash in your Java code sometime during rendering or resizing, which then puts the system in a wedged state. It sounds like GWT may be reporting the problem poorly in Development Mode, so you might try reproducing it in compiled mode to get a clearer error report.

          Comment

          Working...
          X