Announcement

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

    visual glitches for TabSet with many tabs

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

    Chrome on MacOS

    Hello, in the tabsAddAndRemove sample, If you try to add tabs until the tabPicker is shown, you'll see that it seems aligned too high:

    Click image for larger version  Name:	2024-04-08 19.03.12.jpg Views:	0 Size:	10.0 KB ID:	272110

    if using tabBarPosition: "left", with a bigger tabBarThickness:

    Code:
    isc.TabSet.create({
        ID: "tabSet",
        tabBarPosition: "left",
    tabBarThickness: 120,
        width: 400,
        height: 200,
        tabs: [
            {title: "Blue", icon: "pieces/16/pawn_blue.png", iconSize:16,
             pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pieces/48/pawn_blue.png"})},
            {title: "Green", icon: "pieces/16/pawn_green.png", iconSize:16,
             pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pieces/48/pawn_green.png"})}
        ]
    });
    
    isc.HLayout.create({
        top: 225,
        membersMargin: 10,
        members: [
            isc.IButton.create({
                title: "Add Tab",
                click: function () {
                    // alternate between yellow pawn and green cube
                    if (tabSet.tabs.length % 2 == 0) {
                        tabSet.addTab({
                            title: "Yellow",
                            icon: "pieces/16/pawn_yellow.png", iconSize:16,
                            pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pieces/48/pawn_yellow.png"})
                        });
                    } else {
                        tabSet.addTab({
                            title: "Green",
                            icon: "pieces/16/cube_green.png", iconSize:16,
                            pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pieces/48/cube_green.png"})
                        });
                    }
                    if (tabSet.tabs.length == 1) tabSet.selectTab(0);
                }
            }),
            isc.IButton.create({
                title: "Remove Tab",
                click: function () {
                    tabSet.removeTab(tabSet.tabs.length-1);
                }
            })
        ]
    });
    you'll see that it shows two icons for the tabPicker, and the orientation doesn't seem right:

    Click image for larger version  Name:	2024-04-08 19.05.21.jpg Views:	0 Size:	10.7 KB ID:	272111

    #2
    hi Claudio,

    We'll be improving the layout of these tab-management buttons in the next few days - we'll update here when the change arrives.

    Comment


      #3
      hi Claudio,

      We've fixed the "picker" alignment issue in all Flat skins and added a new look for these widgets in Shiva; a rounded button layout with SVG chevrons and rollover button-styling.

      Please take at look at a build April 20 or later and let us know what you think.

      Comment


        #4
        SmartClient Version: SNAPSHOT_v13.1d_2024-04-21/AllModules Development Only (built 2024-04-21)

        Hello, first, for Shiva skin:
        Click image for larger version

Name:	2024-04-22 12.16.27.jpg
Views:	15
Size:	4.3 KB
ID:	272205
        much nicer :)

        For vertical tabs:

        Click image for larger version

Name:	2024-04-22 12.17.59.jpg
Views:	13
Size:	4.4 KB
ID:	272206

        the arrows orientation doesn't seem right, and they're shifted 5px or so downward, until you click on the tabPicker.

        For Twilight, Obsidian and Stratus, the scroller seems too big:

        Click image for larger version

Name:	2024-04-22 12.22.31.jpg
Views:	13
Size:	5.1 KB
ID:	272207

        Click image for larger version

Name:	2024-04-22 12.23.04.jpg
Views:	13
Size:	5.4 KB
ID:	272208

        and the arrow orientation of the tabPicker isn't right.

        In Stratus the tabPicker icon is also too small:

        Click image for larger version

Name:	2024-04-22 12.30.39.jpg
Views:	13
Size:	4.5 KB
ID:	272209

        Tahoe has just the wrong arrow orientation of the tabPicker:

        Click image for larger version

Name:	2024-04-22 12.35.51.jpg
Views:	13
Size:	5.0 KB
ID:	272210

        Comment


          #5
          Thanks Claudio,

          For the height of the button-layout (the width in vertical tabs), the layout currently sizes to the TabBar's size. We'll take a look at that and the various icon issues and get back to you.

          [Edit] We'll also fix the scroller's extra length in Twilight/Obsidian/Stratus.
          Last edited by Isomorphic; 22 Apr 2024, 03:38.

          Comment


            #6
            hi Claudio,

            We've fixed these various issues and tweaked the icon colors in Shiva to match other icons in Shiva - there remains a 1px shift when you click the picker-icon in Shiva when the tabPosition is left or right - we'll get to that shortly.

            You'll see the changes in tomorrow's builds.

            Comment

            Working...
            X