Announcement

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

    How to Change the TabSet 's tabBar width and height?

    Be sure your post includes:

    1. SmartGWT 2.4 + IE8(Firefox 4.0) + GWT 2.2
    2. how to change the tab's tabbar width and height in the tabset?;
    3.
    downTabSet.setTabBarPosition(Side.LEFT);
    downTabSet.setWidth100();
    downTabSet.setHeight("30%");

    Tab detailTab = new Tab("Detail");
    detailTab.setCanClose(true);
    detailTab.setPane(new HelpPane());
    detailTab.setIcon("main/icon5.gif");
    Tab adminDTab = new Tab("Administration");
    downTabs.put(0, adminDTab);


    more detail in the attached pic!
    Thanks admin !
    Attached Files

    #2
    I have the same issue. I have a tabset and I want to have multi-line tabs (I did that putting <br /> between the lines. (setTabTitle(0, "line1 <br />line2" );))
    But the tab height is the same as with one line... how can I change the tabBar height for this purpose? And is there any other "better" way of creating multi-line tabs other than using "<br />"?

    Thanks

    Comment


      #3
      hi use
      TabSet tabSet = new TabSet();
      tabSet.setTabBarThickness(thickness)
      See the doc description for more information

      Code:
      /**
      Thickness of tabBar, applies to either orientation 
      [b](specifies height for horizontal, width for vertical orientation)[/b]. 
      Note that overriding this value for TabSets that are skinned with images generally means providing new media for the borders.
      Parameters:
      tabBarThickness - tabBarThickness Default value is 21
      */
      public void setTabBarThickness(int tabBarThickness)

      Comment


        #4
        That doesn't work, the tabBar has still the same height. What could be the problem?

        Comment


          #5
          Have you tried ?
          Code:
          Tab adminDTab = new Tab("Administration");
          adminDTab.setWidth(150);
          downTabs.put(0, adminDTab);

          Comment

          Working...
          X