Announcement

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

    Calendar.dayHeaderClick bug

    SmartClient Version: v8.3p_2013-06-14/PowerEdition Development Only (built 2013-06-14)

    in the 'simpleCalendar' sample, month view, if you click on the 'dayHeader' cell, first time works, then re-select 'month' tab and re-click 'dayHeader' cell and you'll got this error:
    Code:
    18:08:08.686:MUP0:WARN:Log:TypeError: Cannot read property 'date2' of undefined
    Stack from error.stack:
        Calendar._getDateFromPoint()
        Calendar.getCellDate()
        DaySchedule.getBaseStyle()
        DaySchedule.getCellStyle()
        eval()
        GridRenderer._updateCellStyle()
        [a]MathFunction.invokeSuper()
        GridBody._updateCellStyle()
        GridRenderer.setRowStyle()
        GridRenderer.setCellStyle()
    also note, in the developer console, when loading the sample:
    Code:
    18:07:49.359:INFO:Log:initialized
    18:07:49.657:WARN:ExampleTree:exampleTree:The node titled 'Edit Pane' references a non-existant id: tilePalette
    18:07:49.657:WARN:ExampleTree:exampleTree:The node titled 'Coordinate Persistence' references a non-existant id: automaticPersistence
    18:07:49.658:INFO:Log:isc.Page is loaded
    18:07:49.927:WARN:drawing:featureExplorer_exampleViewer_tabBarControlLayout:Attempt to draw child of an undrawn parent - ignoring
        [a]MathFunction.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
        Canvas.readyToDraw()
        Canvas.draw(_1=>undef)
        TabSet.showControls()
        TabSet.fixLayout()
        TabSet.$54m()
        [o]TabBar.childResized(_11=>[Canvas ID:featureExplorer_exampleViewer_tabBar_baseLine], _12=>1338, _13=>-2, _14=>undef)
        Canvas.$5y(deltaX=>1338, deltaY=>-2, reason=>undef)
        Canvas.$t1(_1=>undef)
        Canvas.moveBy(_1=>0, _2=>23, _3=>undef, _4=>true)
        Canvas.moveTo(_1=>0, _2=>23, _3=>undef, _4=>true)
        Canvas.setRect(_1=>0, _2=>23, _3=>1438, _4=>3, _5=>undef)
        TabBar.fixLayout()
        TabBar.layoutChildren(_1=>"resized", _2=>-2, _3=>0, _4=>undef)
        ** recursed on Canvas.$t1
    
    18:07:49.954:WARN:drawing:featureExplorer_exampleViewer_tabBarControlLayout:Attempt to draw child of an undrawn parent - ignoring
        [a]MathFunction.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
        Canvas.readyToDraw()
        Canvas.draw(_1=>undef)
        TabSet.showControls()
        TabSet.fixLayout()
        TabSet.layoutChildren(_1=>"resized", _2=>1338, _3=>0, _4=>undef)
        Canvas.$t1(_1=>undef)
        Canvas.resizeBy(_1=>1338, _2=>0, _3=>undef, _4=>undef, _5=>undef)
        Canvas.resizeTo(_1=>1438, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
        Canvas.setWidth(_1=>1438)
        Layout.setMemberBreadth(_1=>[ExampleViewer ID:featureExplorer_exampleViewer], _2=>1438)
        Layout.autoSetBreadth(_1=>[ExampleViewer ID:featureExplorer_exampleViewer])
        Layout.addMembers(_1=>Array[1], _2=>3, _3=>true)
        SectionStack.$6m(_1=>Array[1], _2=>false, _3=>true, _4=>undef)
        SectionStack.expandSection(_1=>[SectionHeader ID:isc_SectionHeader_1], _2=>undef)
        SectionStack.addSections(_1=>Obj{name:section_exampleViewer}, _2=>undef, _3=>undef)
        SectionStack.addSection(_1=>Obj{name:section_exampleViewer}, _2=>undef)
        FeatureExplorer.initWidget(Obj{ID:featureExplorer}, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef)
        Canvas.init(_1=>Obj{ID:featureExplorer}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
        [a]MathFunction.completeCreation(_1=>Obj{ID:featureExplorer}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
        [c]Class.create(_1=>Obj{ID:featureExplorer}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
        showExplorer()
        [c]Class.evaluate(_1=>"showExplorer()", _2=>null, _3=>false, _4=>undef, _5=>undef, _6=>undef)
        anonymous(_1=>"showExplorer()", _2=>undef)
        anonymous(_1=>"showExplorer()")
        anonymous(_1=>"../../locales/frameworkMessages.properti..."[70])
    
    18:07:50.075:WARN:drawing:featureExplorer_exampleViewer_tabBarControlLayout:Attempt to draw child of an undrawn parent - ignoring
        [a]MathFunction.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
        Canvas.readyToDraw()
        Canvas.draw(_1=>undef)
        TabSet.showControls()
        TabSet.fixLayout()
        TabSet.layoutChildren(_1=>"resized", _2=>-271, _3=>0, _4=>undef)
        Canvas.$t1(_1=>undef)
        Canvas.resizeBy(_1=>-271, _2=>0, _3=>undef, _4=>undef, _5=>undef)
        Canvas.resizeTo(_1=>1167, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
        Canvas.setWidth(_1=>1167)
        Layout.setMemberBreadth(_1=>[ExampleViewer ID:featureExplorer_exampleViewer], _2=>1167)
        Layout.autoSetBreadth(_1=>[ExampleViewer ID:featureExplorer_exampleViewer])
        Layout.$2w()
        Layout.drawChildren()
        ** recursed on Canvas.draw
    
    18:07:50.076:WARN:drawing:featureExplorer_exampleViewer_tabBarControlLayout:Attempt to draw child of an undrawn parent - ignoring
        [a]MathFunction.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
        Canvas.readyToDraw()
        Canvas.draw(_1=>undef)
        TabSet.showControls()
        TabSet.fixLayout()
        TabSet.$54m()
        [o]TabBar.childResized(_11=>[Canvas ID:featureExplorer_exampleViewer_tabBar_baseLine], _12=>-271, _13=>0, _14=>undef)
        Canvas.$5y(deltaX=>-271, deltaY=>0, reason=>undef)
        Canvas.$t1(_1=>undef)
        Canvas.moveBy(_1=>0, _2=>0, _3=>undef, _4=>true)
        Canvas.moveTo(_1=>0, _2=>23, _3=>undef, _4=>true)
        Canvas.setRect(_1=>0, _2=>23, _3=>1167, _4=>3, _5=>undef)
        TabBar.fixLayout()
        TabBar.layoutChildren(_1=>"resized", _2=>-271, _3=>0, _4=>undef)
        ** recursed on Canvas.$t1
    
    18:07:50.082:WARN:drawing:featureExplorer_exampleViewer_tabBarControlLayout:Attempt to draw child of an undrawn parent - ignoring
        [a]MathFunction.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
        Canvas.readyToDraw()
        Canvas.draw(_1=>undef)
        TabSet.showControls()
        TabSet.fixLayout()
        TabSet.layoutChildren(_1=>"resized", _2=>0, _3=>569, _4=>undef)
        Canvas.$t1(_1=>undef)
        Canvas.resizeBy(_1=>0, _2=>569, _3=>undef, _4=>undef, _5=>undef)
        Canvas.resizeTo(_1=>1167, _2=>669, _3=>undef, _4=>undef, _5=>undef)
        Layout.resizeMembers(_1=>Array[4], _2=>Array[4], _3=>false)
        Layout.layoutChildren(_1=>"initial draw", _2=>undef, _3=>undef)
        Layout.drawChildren()
        ** recursed on Canvas.draw
    maybe is related with the tabset tabBarControls which are appearing in the top left corner of the viewport?

    #2
    This is fixed for builds dated June 17 and later

    Comment


      #3
      SmartClient Version: v8.3p_2013-06-19/PowerEdition Deployment (built 2013-06-19)

      the calendar problem is still there, as the tabBarControls problem, developer console log:
      Code:
      13:10:37.317:INFO:Log:initialized
      13:10:37.636:WARN:ExampleTree:exampleTree:The node titled 'Edit Pane' references a non-existant id: tilePalette
      13:10:37.636:WARN:ExampleTree:exampleTree:The node titled 'Coordinate Persistence' references a non-existant id: automaticPersistence
      13:10:37.637:INFO:Log:isc.Page is loaded
      13:10:37.660:WARN:Log:Detected loading of more than one skin - 'Enterprise' was loaded when 'Enterprise' was already loaded.  See the QuickStart Guide for instructions on correctly changing the current skin
      13:10:37.785:WARN:drawing:featureExplorer_exampleViewer_tabBarControlLayout:Attempt to draw child of an undrawn parent - ignoring
          [a]MathFunction.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
          Canvas.readyToDraw()
          Canvas.draw(_1=>undef)
          TabSet.showControls()
          TabSet.fixLayout()
          TabSet.$54m()
          [o]TabBar.childResized(_11=>[Canvas ID:featureExplorer_exampleViewer_tabBar_baseLine], _12=>1338, _13=>0, _14=>undef)
          Canvas.$5y(deltaX=>1338, deltaY=>0, reason=>undef)
          Canvas.$t1(_1=>undef)
          Canvas.moveBy(_1=>0, _2=>23, _3=>undef, _4=>true)
          Canvas.moveTo(_1=>0, _2=>23, _3=>undef, _4=>true)
          Canvas.setRect(_1=>0, _2=>23, _3=>1438, _4=>1, _5=>undef)
          TabBar.fixLayout()
          TabBar.layoutChildren(_1=>"resized", _2=>-2, _3=>0, _4=>undef)
          ** recursed on Canvas.$t1
      
      13:10:37.810:WARN:drawing:featureExplorer_exampleViewer_tabBarControlLayout:Attempt to draw child of an undrawn parent - ignoring
          [a]MathFunction.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
          Canvas.readyToDraw()
          Canvas.draw(_1=>undef)
          TabSet.showControls()
          TabSet.fixLayout()
          TabSet.layoutChildren(_1=>"resized", _2=>1338, _3=>0, _4=>undef)
          Canvas.$t1(_1=>undef)
          Canvas.resizeBy(_1=>1338, _2=>0, _3=>undef, _4=>undef, _5=>undef)
          Canvas.resizeTo(_1=>1438, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
          Canvas.setWidth(_1=>1438)
          Layout.setMemberBreadth(_1=>[ExampleViewer ID:featureExplorer_exampleViewer], _2=>1438)
          Layout.autoSetBreadth(_1=>[ExampleViewer ID:featureExplorer_exampleViewer])
          Layout.addMembers(_1=>Array[1], _2=>3, _3=>true)
          SectionStack.$6m(_1=>Array[1], _2=>false, _3=>true, _4=>undef)
          SectionStack.expandSection(_1=>[SectionHeader ID:isc_SectionHeader_1], _2=>undef)
          SectionStack.addSections(_1=>Obj{name:section_exampleViewer}, _2=>undef, _3=>undef)
          SectionStack.addSection(_1=>Obj{name:section_exampleViewer}, _2=>undef)
          FeatureExplorer.initWidget(Obj{ID:featureExplorer}, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef)
          Canvas.init(_1=>Obj{ID:featureExplorer}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
          [a]MathFunction.completeCreation(_1=>Obj{ID:featureExplorer}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
          [c]Class.create(_1=>Obj{ID:featureExplorer}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
          showExplorer()
          [c]Class.evaluate(_1=>"showExplorer()", _2=>null, _3=>false, _4=>undef, _5=>undef, _6=>undef)
          anonymous(_1=>"showExplorer()", _2=>undef)
          anonymous(_1=>"showExplorer()")
          anonymous(_1=>"../../locales/frameworkMessages.properti..."[70])
      
      13:10:37.909:WARN:drawing:featureExplorer_exampleViewer_tabBarControlLayout:Attempt to draw child of an undrawn parent - ignoring
          [a]MathFunction.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
          Canvas.readyToDraw()
          Canvas.draw(_1=>undef)
          TabSet.showControls()
          TabSet.fixLayout()
          TabSet.layoutChildren(_1=>"resized", _2=>-271, _3=>0, _4=>undef)
          Canvas.$t1(_1=>undef)
          Canvas.resizeBy(_1=>-271, _2=>0, _3=>undef, _4=>undef, _5=>undef)
          Canvas.resizeTo(_1=>1167, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
          Canvas.setWidth(_1=>1167)
          Layout.setMemberBreadth(_1=>[ExampleViewer ID:featureExplorer_exampleViewer], _2=>1167)
          Layout.autoSetBreadth(_1=>[ExampleViewer ID:featureExplorer_exampleViewer])
          Layout.$2w()
          Layout.drawChildren()
          ** recursed on Canvas.draw
      
      13:10:37.910:WARN:drawing:featureExplorer_exampleViewer_tabBarControlLayout:Attempt to draw child of an undrawn parent - ignoring
          [a]MathFunction.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
          Canvas.readyToDraw()
          Canvas.draw(_1=>undef)
          TabSet.showControls()
          TabSet.fixLayout()
          TabSet.$54m()
          [o]TabBar.childResized(_11=>[Canvas ID:featureExplorer_exampleViewer_tabBar_baseLine], _12=>-271, _13=>0, _14=>undef)
          Canvas.$5y(deltaX=>-271, deltaY=>0, reason=>undef)
          Canvas.$t1(_1=>undef)
          Canvas.moveBy(_1=>0, _2=>0, _3=>undef, _4=>true)
          Canvas.moveTo(_1=>0, _2=>23, _3=>undef, _4=>true)
          Canvas.setRect(_1=>0, _2=>23, _3=>1167, _4=>1, _5=>undef)
          TabBar.fixLayout()
          TabBar.layoutChildren(_1=>"resized", _2=>-271, _3=>0, _4=>undef)
          ** recursed on Canvas.$t1
      
      13:10:37.916:WARN:drawing:featureExplorer_exampleViewer_tabBarControlLayout:Attempt to draw child of an undrawn parent - ignoring
          [a]MathFunction.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
          Canvas.readyToDraw()
          Canvas.draw(_1=>undef)
          TabSet.showControls()
          TabSet.fixLayout()
          TabSet.layoutChildren(_1=>"resized", _2=>0, _3=>566, _4=>undef)
          Canvas.$t1(_1=>undef)
          Canvas.resizeBy(_1=>0, _2=>566, _3=>undef, _4=>undef, _5=>undef)
          Canvas.resizeTo(_1=>1167, _2=>666, _3=>undef, _4=>undef, _5=>undef)
          Layout.resizeMembers(_1=>Array[4], _2=>Array[4], _3=>false)
          Layout.layoutChildren(_1=>"initial draw", _2=>undef, _3=>undef)
          Layout.drawChildren()
          ** recursed on Canvas.draw
      
      13:11:05.274:MUP8:WARN:Log:TypeError: Cannot read property 'date2' of undefined
      Stack from error.stack:
          Calendar._getDateFromPoint()
          Calendar.getCellDate()
          DaySchedule.getBaseStyle()
          DaySchedule.getCellStyle()
          eval()
          GridRenderer._updateCellStyle()
          [a]MathFunction.invokeSuper()
          GridBody._updateCellStyle()
          GridRenderer.setRowStyle()
          GridRenderer.setCellStyle()
      
      13:11:07.463:MUP6:WARN:Log:TypeError: Cannot read property 'date2' of undefined
      Stack from error.stack:
          Calendar._getDateFromPoint()
          Calendar.getCellDate()
          DaySchedule.getBaseStyle()
          DaySchedule.getCellStyle()
          eval()
          GridRenderer._updateCellStyle()
          [a]MathFunction.invokeSuper()
          GridBody._updateCellStyle()
          GridRenderer.setRowStyle()
          GridRenderer.setCellStyle()

      Comment


        #4
        This fix was present in 9.0 and 9.1, but hadn't been ported to 8.3 - it will be in the next nightly build

        Comment


          #5
          thanks, but I've just found another bug with SmartClient Version: v8.3p_2013-06-19/PowerEdition Development Only (built 2013-06-19)
          tested with chrome

          in the #simpleCalendar sample, add:
          Code:
          showDayView: false, showWeekView: false
          then edit an event, and modify 'From' with a startTime which must be before of the original startTime, then save and you'll got:
          Code:
          17:03:00.800:MUP3:WARN:DynamicForm:isc_DynamicForm_1:Attempt to remove child: [IButton ID:isc_SubmitItem_0_button] from Canvas that is not its parent
          17:03:00.800:MUP3:WARN:DynamicForm:isc_DynamicForm_1:Attempt to remove child: [IButton ID:isc_ButtonItem_0_button] from Canvas that is not its parent
          17:03:00.800:MUP3:WARN:DynamicForm:isc_DynamicForm_1:Attempt to remove child: [IButton ID:isc_SubmitItem_1_button] from Canvas that is not its parent
          17:03:00.800:MUP3:WARN:DynamicForm:isc_DynamicForm_1:Attempt to remove child: [IButton ID:isc_ButtonItem_1_button] from Canvas that is not its parent
          17:03:08.904:MUP7:WARN:Log:TypeError: Cannot call method 'isDrawn' of undefined
          Stack from error.stack:
              Calendar._renderEventRange()
              Calendar.addEventOrUpdateEventFields()
              eventEditorLayout.createAutoChild.items.isc.HLayout.create.members.isc.IButton.create.click()
              StatefulCanvas.handleActivate()
              StatefulCanvas.handleClick()
              [c]EventHandler.bubbleEvent()
              [c]EventHandler.handleClick()
              EventHandler._handleMouseUp()
              [c]EventHandler.handleMouseUp()
              [c]EventHandler.dispatch()

          Comment


            #6
            The port of the previous fix to 8.3 actually didn't make it into the build over night - however, it is there now and will be in tomorrow's 8.3 build, along with a fix for your last point.

            Comment


              #7
              SmartClient Version: v8.3p_2013-06-21/PowerEdition Development Only (built 2013-06-21)

              verified both problems, thanks

              but the tabBarControls remains broken in the SmartClient Reference, Explorer and developer console (as highlighted in the attachment)
              Attached Files

              Comment


                #8
                This was a regression that was fixed on Friday - please retest with a more recent build

                Comment


                  #9
                  fixed, thanks

                  Comment

                  Working...
                  X