Announcement

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

    Change space from Tabs

    Hello,

    Is it possible to change the white color around the red label (see the attached picture)? I already changed the margin, padding to be 0 and the background color.

    Here is my code:
    Code:
    TabSet ts = new TabSet();
    //ts.setBackgroundColor("green");
    ts.setMargin(0);
    ts.setPadding(0);
    		
    ts.setLeft(100);
    ts.setHeight(200);
    Tab t = new Tab("title");
    		
    Tab t1 = new Tab("11title");
    
    Label l = new Label("kkk");
    l.setMargin(0);
    l.setPadding(0);
    	
    l.setBackgroundColor("red");
    Label l1 = new Label("kkk");
    l1.setBackgroundColor("red");
    t.setPane(l);
    t1.setPane(l1);
    ts.addTab(t);
    ts.addTab(t1);
    
    Window w = new Window();
    w.setTitle("test");
    w.setWidth(200);
    w.setHeight(200);
    w.addItem(ts);
    w.show();
    Does anyone have an idea?
    Thanks
    Attached Files

    #2
    Change space from Tabs

    This one drove me nuts for a while too..

    Edit the loadskins.js file, under section 6 TabSets change paneMargin to 0

    Best Regards

    Chris

    Comment


      #3
      Any way to provide an API for this

      This is a problem for me too. Changing the loadskins.js is not a long-term solution with nightly builds, upgrades etc. It would be helpful to have a
      TabSet.setPaneMargin.

      Comment


        #4
        You can also add such a setting in a JSNI block at the start of your application.

        Comment

        Working...
        X