Announcement

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

    12.1p+ ListGrid column width differences depending on canEdit

    Hi Isomorphic,

    playing with this sample (v12.1p_2025-11-27, v13.1p_2025-11-27) I found a strange effect. ListGrid column widths differ severely depending on the presence of canEdit.
    1st ListGrid has canEdit:true, the 2nd one does not.
    Code:
    isc.VLayout.create({
        width: "100%",
        height: "100%",
        members: [
            isc.ListGrid.create({
                ID: "dsListGrid",
                canEdit: true,
                width: "100%",
                height: "100%",
                autoFetchData: true,
                dataSource: "supplyItem"
            }), isc.ListGrid.create({
                ID: "dsListGrid2",
                width: "100%",
                height: "100%",
                autoFetchData: true,
                dataSource: "supplyItem"
            })
        ]
    });
    Best regards
    Blama

    Click image for larger version

Name:	ListGrid column widths.png
Views:	19
Size:	195.2 KB
ID:	276751


    #2
    More minimal testcase without data:
    Code:
    isc.VLayout.create({
        width: "100%",
        height: "100%",
        members: [
            isc.ListGrid.create({
                ID: "dsListGrid",
                canEdit: true,
                dataSource: "supplyItem"
            }), isc.ListGrid.create({
                ID: "dsListGrid2",
                dataSource: "supplyItem"
            })
        ]
    });

    Comment


      #3
      It's expected that default sizes would differ due to our heuristics that try to leave room for editors in certain fields. In this case, Next Shipment gets squeezed more than it should, but that basically has to do with Units being given too much space, not to a problem in the heuristics per se.

      Comment


        #4
        Hi, maybe it's related to this https://forums.smartclient.com/forum...113#post276113

        Comment


          #5
          Hi Isomorphic ,

          OK, if it works as designed that is fine for me as well. Just wanted to point out the observation.
          I agree that taking editor widths into consideration makes sense.

          Thank you & Best regards
          Blama

          Comment

          Working...
          X