Announcement

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

    Tab set baseLineThickness

    Hi ,

    I want to adjust the position of panel depending upon which tab is selected, I not able to find the method to updated baseLineThickness, below is my code, please correct me in the given example
    [Code ]
    isc.TabSet.create({
    ID: "topTabSet",
    tabBarPosition: "top",
    top:50,left:50,
    width: 400,
    height: 200,
    tabSelected : function tabsselected(tabNum,tabPane,ID)
    {
    if(ID=="Blue")
    {
    topTabSet.setWidth(500);
    topTabSet.setProperty(baseLineThickness,-59);
    //topTabSet.addProperties({baseLineThickness:-59});
    }
    if(ID=="Green")
    {
    topTabSet.setWidth(600);
    topTabSet.setProperty(baseLineThickness,-19);
    //topTabSet.addProperties({baseLineThickness:-39});
    }
    },
    tabs: [
    {title: "Blue",ID:"Blue", icon: "pawn_blue.png",
    pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pawn_blue.png"})},
    {title: "Green",ID:"Green", icon: "pawn_green.png",
    pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pawn_green.png"})}
    ]
    });

    [/Code ]

    #2
    A negative baseLineThickness wouldn't be valid..

    Could you give an idea of the visual effect you're trying to achieve?

    Comment


      #3
      baseLineThickness

      I am having three tabs, and below tabs I want to show few buttons and some text depending upon which tab is selected and below this the panel container loading different pages. In short I want to incerease and decrease the space between tabs and panel container.
      About the negative value, in load_skin I am assigning baseLineThicknessas as -20, to create space between my tabs and panel.

      Regards

      Comment


        #4
        A negative baseline thickness is going to be ignored, but if it weren't, it would make the tabs closer to the panel, not further. Set a high positive baseline thickness to create separation, or, use margins or padding within the paneContainer itself.

        Comment


          #5
          baseLineThickness

          Is there any method to set the baselinethickness dynamically depending upon the which tab is selected.
          I have tried with topTabSet.setProperty(baseLineThickness,59);
          This wount work.

          Regards

          Comment


            #6
            Hi Kens107,

            baseLineThickness cannot be set dynamically (see the docs). However, again, what you probably want to do is create some spacing within the paneContainer.

            For example, each different tab.pane might have a margin-top set that provides a different amount of spacing between the pane and the tabBar.

            Comment

            Working...
            X