Announcement

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

    [bug] ListGridField.autoFit by value

    SmartClient Version: v13.1p_2025-07-26/AllModules Development Only (built 2025-07-26)

    Chrome on MacOS

    Hello, please modify the columnOrder sample like this (I've just added autoFit:"value" to the countryName field):

    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:500, height:224,
        data: countryData,
        fields:[
            {name:"countryCode", title:"Flag", width:65, type:"image", imageURLPrefix:"flags/24/", imageURLSuffix:".png"},
            {name:"countryName", title:"Country", autoFit:"value"},
            {name:"capital", title:"Capital", showIf:"false"},
            {name:"continent", title:"Continent"}
        ],
        canReorderFields: true
    })
    
    
    isc.IButton.create({
        left:0, top:240,
        title:"Show Capitals",
        click:"countryList.showField('capital')"
    })
    
    isc.IButton.create({
        left:130, top:240,
        title:"Hide Capitals",
        click:"countryList.hideField('capital')"
    })
    you'll see that the column width is too narrow, and when you over the header, it will become wider (only the header, not the cells):

    Click image for larger version

Name:	Registrazione schermo 2025-07-28 alle 22.29.19.gif
Views:	93
Size:	1.10 MB
ID:	276124

    #2
    hi Claudio - thanks for the report.

    This is actually the same underlying issue as in your other report about autoFit: "both" - there appears to be a regression that's broken "value" auto-sizing mode.

    We're looking into it and will get back to you shortly.

    Comment


      #3
      This issue should now be resolved. Please try the next nightly build dated Aug 8 or above and let us know if the issue persists

      Regards
      Isomorphic Software

      Comment


        #4
        SmartClient Version: v13.1p_2025-08-08/AllModules Development Only (built 2025-08-08)

        I see it's working now, thank you very much!

        Comment

        Working...
        X