Announcement

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

    Tab/TabSet always with fixed 5px margin

    Been fighting an issue with default margin in tabs for a few hours now, but must give up. Even if margin/padding is set to 0 for TabSet and Tab, there always seems to be a 5 pixel margin around anything put into a Tab.

    Looking at it with Firebug, it does indeed look like the child of the Tab DIV get's an absolute position set with left, top... = 5px. A similar thing have been reported in the past apparently: http://forums.smartclient.com/showthread.php?t=8100&highlight=TabSet+margin

    So it looks like a bug, unless this is a caveat of Tab and why setMargin() purposely has been omitted?!

    #2
    Try

    Code:
    TabSet tabSet = new TabSet() {{setAttribute("paneMargin", 0, false);}};
    This method will be exposed in a future build.

    Sanjiv

    Comment


      #3
      Appears we can now remove this margin with

      tabSet.setPaneMargin(0);

      JavaDocs appear to be incorrect as they state the default is 0, however there is a 5 pixel margin by default.

      http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/widgets/tab/TabSet.html#setPaneMargin%28int%29

      Comment

      Working...
      X