Announcement

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

    problem with an embeddedComponent on Android

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

    Chrome on Android (tried with emulator Pixel 7 Android 13 in Android Studio, and also with physical device XIAOMI Redmi Note 13 Pro Android 15)

    Hello, please modify the showcase sample fetchOperationFS like this:

    Code:
    isc.Menu.create({
        ID: "menu",
        autoDraw: false,
        width: 405,
        height: 440,
        data: [
            {
                showRollOver: false,
                embeddedComponent: isc.ListGrid.create({
                    autoDraw: false,
                    ID: "dsListGrid",
                    width: "100%",
                    height: 400,
                    autoFetchData: true, fixedRecordHeights: false, wrapCells: true,
    
                    dataSource: "supplyItem", fields: [{name: "description", wrap: true}]
                }),
                embeddedComponentFields: ["title"]
            }
        ]
    });
    
    var menuButton = isc.MenuButton.create({
        ID: "menuButton",
        autoDraw: true,
        title: "Menu",
        width: 100,
        menu: menu
    });
    when I run it and open the Menu on an Android device I get something like:

    Click image for larger version

Name:	Screenshot_1740581236.png
Views:	45
Size:	134.8 KB
ID:	275292

    and I see several WARN like this:

    Code:
    ISC_Core.js?isc_vers…_2025-02-26.js:1478 *15:43:17.410:TUP9:WARN:GridBody:menu_body:row heights not yet available; returning all zeroes
    isc.B.push.isc.A.addToMasterLog @ ISC_Core.js?isc_vers…_2025-02-26.js:1478
    isc_c_Log_addLogMessage @ ISC_Core.js?isc_vers…_2025-02-26.js:1476
    isc_c_Log_log @ ISC_Core.js?isc_vers…_2025-02-26.js:1469
    logMessage @ ISC_Core.js?isc_vers…_2025-02-26.js:1458
    logWarn @ ISC_Core.js?isc_vers…_2025-02-26.js:1458
    isc_GridRenderer__getDrawnRowHeights @ ISC_Grids.js?isc_ver…p_2025-02-26.js:603
    isc_GridRenderer_getDrawnRowHeight @ ISC_Grids.js?isc_ver…p_2025-02-26.js:588
    isc_GridRenderer_getRowSize @ ISC_Grids.js?isc_ver…p_2025-02-26.js:586
    isc_GridRenderer_placeEmbeddedComponent @ ISC_Grids.js?isc_ver…p_2025-02-26.js:498
    isc_GridRenderer__placeEmbeddedComponents @ ISC_Grids.js?isc_ver…p_2025-02-26.js:510
    isc_c_Class_invokeSuper @ ISC_Core.js?isc_vers…p_2025-02-26.js:326
    isc_c_Class_Super @ ISC_Core.js?isc_vers…p_2025-02-26.js:318
    isc_GridBody__placeEmbeddedComponents @ ISC_Grids.js?isc_ver…p_2025-02-26.js:833
    isc_GridRenderer_modifyContent @ ISC_Grids.js?isc_ver…p_2025-02-26.js:715
    isc_Canvas__updateHTML @ ISC_Core.js?isc_vers…_2025-02-26.js:3741
    isc_Canvas_redraw @ ISC_Core.js?isc_vers…_2025-02-26.js:3732
    isc_c_Class_invokeSuper @ ISC_Core.js?isc_vers…p_2025-02-26.js:326
    isc_GridRenderer_redraw @ ISC_Grids.js?isc_ver…p_2025-02-26.js:715
    isc_c_Class_invokeSuper @ ISC_Core.js?isc_vers…p_2025-02-26.js:326
    isc_GridBody_redraw @ ISC_Grids.js?isc_ver…p_2025-02-26.js:846
    isc_Canvas_redrawChildren @ ISC_Core.js?isc_vers…_2025-02-26.js:3748
    isc_Canvas__updateHTML @ ISC_Core.js?isc_vers…_2025-02-26.js:3739
    isc_Canvas_redraw @ ISC_Core.js?isc_vers…_2025-02-26.js:3732
    isc_c_Class_invokeSuper @ ISC_Core.js?isc_vers…p_2025-02-26.js:326
    isc_ListGrid_redraw @ ISC_Grids.js?isc_ver…_2025-02-26.js:1173
    isc_Canvas_setVisibility @ ISC_Core.js?isc_vers…_2025-02-26.js:4473
    isc_Menu__showOffscreen @ ISC_Grids.js?isc_ver…_2025-02-26.js:4015
    showMenu @ ISC_Grids.js?isc_ver…_2025-02-26.js:4106
    handleActivate @ ISC_Grids.js?isc_ver…_2025-02-26.js:4100
    isc_StatefulCanvas_handleClick @ ISC_Foundation.js?is…p_2025-02-26.js:248
    isc_c_EventHandler_bubbleEvent @ ISC_Core.js?isc_vers…_2025-02-26.js:2932
    isc_c_EventHandler_handleClick @ ISC_Core.js?isc_vers…_2025-02-26.js:2742
    isc_c_EventHandler__handleMouseUp @ ISC_Core.js?isc_vers…_2025-02-26.js:2724
    isc_c_EventHandler__handleTouchEnd @ ISC_Core.js?isc_vers…_2025-02-26.js:2770
    isc_c_EventHandler_dispatch @ ISC_Core.js?isc_vers…_2025-02-26.js:3031
    eval @ VM36:3
    On iOS it is working.

    #2
    SmartClient Version: v13.1p_2025-03-11/AllModules Development Only (built 2025-03-11)

    Hello, this issue seems still there, and I must say that
    Code:
    fixedRecordHeights: false, wrapCells: true
    aren't necessary to replicate the problem, so this will suffice:

    Code:
    isc.Menu.create({
        ID: "menu",
        autoDraw: false,
        width: 405,
        height: 440,
        data: [
            {
                showRollOver: false,
                embeddedComponent: isc.ListGrid.create({
                    autoDraw: false,
                    ID: "dsListGrid",
                    width: "100%",
                    height: 400,
                    autoFetchData: true,
    
                    dataSource: "supplyItem", fields: [{name: "description", wrap: true}]
                }),
                embeddedComponentFields: ["title"]
            }
        ]
    });
    
    var menuButton = isc.MenuButton.create({
        ID: "menuButton",
        autoDraw: true,
        title: "Menu",
        width: 100,
        menu: menu
    });

    Comment


      #3
      Hi Claudio
      Just a quick note to reassure you that we are seeing this issue and it is being worked on by our dev team. We'll follow up as soon as we have more information for you.

      Regards
      Isomorphic Software

      Comment


        #4
        We've made some changes to address this issue. Please try the next nightly build dated March 15 or above

        Regards
        Isomorphic Software

        Comment


          #5
          SmartClient Version: v13.1p_2025-03-15/Enterprise Deployment (built 2025-03-15)

          I can confirm it's fixed, thank you very much!

          Comment

          Working...
          X