gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.53k stars 377 forks source link

TabBar's DecoratorPanels cause tripple padding in IE #2275

Closed dankurka closed 9 years ago

dankurka commented 9 years ago

Originally reported on Google Code with ID 2269

Found in GWT Release:
1.5M2, and as recent as r2433

Detailed description:
  /* Space the individual tabs about 12px (=2* 6px) apart */
  .gwt-TabBarItem {
    padding: 2px 6px;
  }

  // Create a few tabs
  TabPanel panel = new TabPanel();
  RootPanel.get().add(panel);
  panel.add(new Label("One"), "One");
  panel.add(new Label("Two"), "Two");
  panel.add(new Label("Three"), "Three");

In 1.4 tabs are spaced as expected in all browsers. But, in 1.5M2 the
DecoratorPanel which wraps each tab cause IE to tripple the inter-tab
spacing as it appears to inherit/apply the CSS padding to each of the cells
in the 3x3 decorator panel, rather than just to the top level (table) widget.

Workaround if you have one:
Possibly rewrap the tab item DecoratorPanel in a DIV (SimplePanel).

Links to the relevant GWT Developer Forum posts:

Reported by fredsa on 2008-04-11 02:15:19

dankurka commented 9 years ago
http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/e1a4595e638f29aa

Reported by fredsa on 2008-04-11 04:49:48

dankurka commented 9 years ago

Reported by bruce+personal@google.com on 2008-04-15 01:48:06

dankurka commented 9 years ago
Moving to 1.5, so that we make sure to consider all implications of these structural
changes.

Reported by jgw+personal@google.com on 2008-04-15 14:46:55

dankurka commented 9 years ago
Pushing this, because I believe it should only apply to the DecoratedTabBar/Panel
now, where it may or may not matter (because it won't break existing apps that use
TabBar/Panel).

Reported by jgw+personal@google.com on 2008-06-11 19:18:54

dankurka commented 9 years ago

Reported by bruce+personal@google.com on 2008-10-21 22:01:00

dankurka commented 9 years ago

Reported by ecc%google.com@gtempaccount.com on 2009-01-05 20:44:01

dankurka commented 9 years ago

Reported by dankurka@google.com on 2013-05-26 02:02:17