Announcement

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

    AdaptiveMenu visual glitch

    SmartClient Version: SNAPSHOT_v13.1d_2024-07-22/AllModules Development Only (built 2024-07-22)

    Hello, please try this test case:

    Code:
    // variable-length name label and button control
    isc.Label.create({
        ID: "nameLabel",
        width: 1,
        wrap: false,
        refreshTitle : function (longName) {
            var name = longName ? "Alejandro O'Reilly" : "Lucy Lu";
            this.setContents("<b>Candidate: " + name + "</b>");
        }
    });
    
    isc.AdaptiveMenu.create({
        ID: "adaptiveMenu",
        defaultLayoutAlign: "center",
        items: [
            {title: "Contact", click: "isc.say(this.title)"},
            {title: "Hire Now", click: "isc.say(this.title)"},
            {title: "View Résumé", click: "isc.say(this.title)"},
            {
                title: "Edit",
                showRollOver: false,
                embeddedComponent: isc.HStack.create({
                    snapTo: "TR",
                    height: "100%",
                    width: 190,
                    membersMargin: 3,
                    layoutMarginBottom: 5,
                    defaultLayoutAlign: "center",
                    members: [
                        isc.IButton.create({title: "Cut", autoFit:true, click: "isc.say(this.title)"}),
                        isc.IButton.create({title: "Copy", autoFit:true, click: "isc.say(this.title)"}),
                        isc.IButton.create({title: "Paste", autoFit:true, click: "isc.say(this.title)"})
                    ]
                }),
                embeddedComponentFields: ["key"]
            }
        ],
        menuProperties: {
            width: 350
        }
    });
    
    isc.ToolStripButton.create({
        ID: "printButton",
        icon: "[SKIN]/RichTextEditor/print.png",
        title: "Print"
    
    })
    
    // parent Layouts
    isc.ToolStrip.create({
        width: 375,
        membersMargin: 5,
        layoutLeftMargin: 10,
        ID: "toolStrip",
        showResizeBar: true,
        members: [printButton, adaptiveMenu,
    ]
    });
    You may see that the ToolStripButtons generated by the AdaptiveMenu are visually different from the "Print" button (which is a regular ToolStripButton):

    Click image for larger version

Name:	2024-07-23 10.10.25.jpg
Views:	38
Size:	3.4 KB
ID:	273006

    Click image for larger version

Name:	2024-07-23 10.11.07.jpg
Views:	29
Size:	3.3 KB
ID:	273007

    if you remove the printButton from the ToolStrip, you'll see that the ToolStrip height becomes smaller, I think it's a consequence of the previous glitch:

    Click image for larger version

Name:	2024-07-23 10.15.50.jpg
Views:	29
Size:	2.3 KB
ID:	273008

    Also, just for Twilight, in the toolStripButtonFocusedDown style the title is not much visible:

    Click image for larger version

Name:	2024-07-23 10.17.44.jpg
Views:	31
Size:	2.4 KB
ID:	273009

    #2
    hi Claudio - this visual glitch was actually toolStripButtons being scaled twice, from an initial 22px to an eventual 42px - this happens because Flat series skins overwrite isc.ToolStripButton with isc.Button, and both classes are registered for scaling.

    We've also corrected the Twilight color you mentioned.

    Please retest with tomorrow's builds, dated July 24 or later
    Last edited by Isomorphic; 23 Jul 2024, 02:23.

    Comment


      #3
      SmartClient Version: SNAPSHOT_v13.1d_2024-07-25/AllModules Development Only (built 2024-07-25)

      I see it's fixed, thank you very much.

      Comment

      Working...
      X