Announcement

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

    TabSet header size

    We needed the header of TabSet component to be hidden/shown.
    It can help someone =)

    This method has no effect:
    Code:
    tabs.setTabBarThickness(1);
    So after 3 hours of code investigation the solution was found:

    Code:
    public static native void jsSetTabBarHeight(JavaScriptObject tabSet, int size)
    /*-{
        if(tabSet.getTabBar){
            var tb = tabSet.getTabBar();
        	tb.setHeight(size);
        }
    }-*/;

    call:
    Code:
    jsSetTabBarHeight(tabs.getJsObj(), 1);
    Last edited by lorez; 16 Feb 2012, 20:39.
Working...
X