Announcement

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

    12.1p ListGridField canDragResize: false exception

    Hi Isomorphic,

    creating another testcase I noticed this issue in current 12.1 (v12.1p_2020-04-10, 12.0p OK IMHO).

    Please see this modified sample and hover the right end of the non-resizeable field.
    You'll get this exception:
    Code:
    18:35:00.264:MMV9:WARN:Log:TypeError: Cannot read property 'R' of null
    Stack from error.stack:
        Canvas._getCurrentResizeCursor(<no args: exited>) on [Button ID:isc_Button_234] @ ISC_Core.js:3862:388
        Canvas.getCurrentCursor(<no args: exited>) on [HeaderMenuButton ID:countryList_headerMenuButton] @ ISC_Core.js:3866:60
        Canvas.getTagStart(<no args: exited>) on [HeaderMenuButton ID:countryList_headerMenuButton] @ ISC_Core.js:3114:52
        Canvas._insertHTML(<no args: exited>) on [HeaderMenuButton ID:countryList_headerMenuButton] @ ISC_Core.js:3031:248
        Canvas.draw(<no args: exited>) on [HeaderMenuButton ID:countryList_headerMenuButton] @ ISC_Core.js:2977:220
        StatefulCanvas.draw(<no args: exited>) on [HeaderMenuButton ID:countryList_headerMenuButton] @ ISC_Foundation.js:220:431
        Canvas.addPeer(<no args: exited>) on [Button ID:isc_Button_230] @ ISC_Core.js:3203:61
        ListGrid._showHeaderMenuButton(<no args: exited>) on[ListGrid ID:countryList] @ ISC_Grids.js:2810:221
        _3.handleMouseOver(<no args: exited>) on [Button ID:isc_Button_230] @ ISC_Grids.js:2698:234
        [c]EventHandler.bubbleEvent(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:2436:89
        [c]EventHandler.handleEvent(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:2139:351
        EventHandler.__handleMouseMove(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:2228:19
        EventHandler._handleMouseMove(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:2212:244
        [c]EventHandler.handleMouseMove(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:2212:11
        [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseMove(), _2=>[object MouseEvent]) on [Class EventHandler] @ ISC_Core.js:2531:122
        HTMLDocument.eval(event=>[object MouseEvent]) @ [no file]:3:123
    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:500, height:224, alternateRecordStyles:true,
        data: countryData,
        fields:[
            {name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png"},
            {name:"countryName", title:"Country", canDragResize: false},
            {name:"capital", title:"Capital"},
            {name:"continent", title:"Continent"}
        ],
        canResizeFields: true
    })
    Best regards
    Blama

    #2
    Also only after the exception (?) you'll get these warnings for hovering some of the headers (country and continent only(?)):
    Code:
    18:36:53.585:MMV9:WARN:drawing:countryList_headerMenuButton:draw() called on widget with current drawn state: drawingHandle, ignoring.
        Canvas.readyToDraw() on [HeaderMenuButton ID:countryList_headerMenuButton] @ ISC_Core.js:2955:707
        Canvas.draw(_1=>undef) on [HeaderMenuButton ID:countryList_headerMenuButton] @ ISC_Core.js:2967:145
        StatefulCanvas.draw(_1=>undef, _2=>undef, _3=>undef) on [HeaderMenuButton ID:countryList_headerMenuButton] @ ISC_Foundation.js:220:431
        Canvas.addPeer(_1=>[HeaderMenuButton ID:countryList_headerMenuButton], _2=>undef, _3=>undef, _4=>undef) on [Button ID:isc_Button_234] @ ISC_Core.js:3203:61
        ListGrid._showHeaderMenuButton(_1=>[Button ID:isc_Button_234]) on[ListGrid ID:countryList] @ ISC_Grids.js:2810:221
        _3.handleMouseOver(_13=>Obj) on [Button ID:isc_Button_234] @ ISC_Grids.js:2698:234
        [c]EventHandler.bubbleEvent(_1=>[Button ID:isc_Button_234], _2=>"mouseOver", _3=>undef, _4=>null, _5=>undef) on [Class EventHandler] @ ISC_Core.js:2436:89
        [c]EventHandler.handleEvent(_1=>[Button ID:isc_Button_234], _2=>"mouseOver", _3=>undef, _4=>undef) on [Class EventHandler] @ ISC_Core.js:2139:351
        EventHandler.__handleMouseMove(_1=>[object MouseEvent], _2=>Obj) on [Class EventHandler] @ ISC_Core.js:2228:19
        EventHandler._handleMouseMove(_1=>[object MouseEvent], _2=>Obj) on [Class EventHandler] @ ISC_Core.js:2212:244
        [c]EventHandler.handleMouseMove(_1=>[object MouseEvent]) on [Class EventHandler] @ ISC_Core.js:2212:11
        [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseMove(), _2=>[object MouseEvent]) on [Class EventHandler] @ ISC_Core.js:2531:122
        HTMLDocument.eval(event=>[object MouseEvent]) @ [no file]:3:123
    Best regards
    Blama

    Comment


      #3
      Thanks for the notification
      This issue has been taken care of. Please try the next nightly build (dated April 14 or above)

      Regards
      Isomorphic Software

      Comment


        #4
        Hi Isomorphic,

        I can see this is fixed using v12.1p_2020-04-15.

        Thank you & Best regards
        Blama

        Comment

        Working...
        X