Announcement

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

    Menu.maxHeight not respected the first time it's opened

    SmartClient Version: SNAPSHOT_v13.1d_2022-04-04/AllModules Development Only (built 2022-04-04)

    SmartClient Version: v13.0p_2022-04-02/AllModules Development Only (built 2022-04-02)

    SmartClient Version: v12.1p_2022-04-01/AllModules Development Only (built 2022-04-01)

    Chrome on MacOS

    Hello, please try this test case:

    Code:
    var ds = isc.DataSource.get("countryDS");
    
    var menuButton = isc.MenuButton.create({
        ID: "menuButton",
        title: "File",
        width: 100,
        menu: isc.Menu.create({
            ID: "menu",
            autoFetchData: true,
            showShadow: true,
            shadowDepth: 10,
            dataSource: ds,
            maxHeight: 300,
            autoFitData: null,
            autoFitMaxHeight: 300,
            titleFieldProperties: {
                name: "countryName", title: "Capital",
                formatCellValue: function (value, record, rowNum, colNum, grid) {
                    return record.countryName;
                }
            }
        })
    });
    
    isc.HStack.create({
        width: "100%",
        members: [menuButton]
    });
    You'll see that the first time that you open the Menu, the maxHeight attribute isn't respected, but the 2nd time the height is correct

    #2
    We've made a change to address this issue.
    Please try the next nightly build dated April 13 or above

    Regards
    Isomorphic Software

    Comment


      #3
      I see it's working now, thank you very much.

      Comment

      Working...
      X