Added styles gwt-TabBarFirst-wrapper and gwt-TabBarRest-wrapper to the TabBar.
Patch by: jlabanca
Review by: ecc
Issue: 2869
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@3642 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/client/ui/TabBar.java b/user/src/com/google/gwt/user/client/ui/TabBar.java
index 37d2bd0..f7065fe 100644
--- a/user/src/com/google/gwt/user/client/ui/TabBar.java
+++ b/user/src/com/google/gwt/user/client/ui/TabBar.java
@@ -28,7 +28,11 @@
* <ul class='css'>
* <li>.gwt-TabBar { the tab bar itself }</li>
* <li>.gwt-TabBar .gwt-TabBarFirst { the left edge of the bar }</li>
+ * <li>.gwt-TabBar .gwt-TabBarFirst-wrapper { table cell around the left edge }
+ * </li>
* <li>.gwt-TabBar .gwt-TabBarRest { the right edge of the bar }</li>
+ * <li>.gwt-TabBar .gwt-TabBarRest-wrapper { table cell around the right edge }
+ * </li>
* <li>.gwt-TabBar .gwt-TabBarItem { unselected tabs }</li>
* <li>.gwt-TabBar .gwt-TabBarItem-wrapper { table cell around tab }</li>
* <li>.gwt-TabBar .gwt-TabBarItem-selected { additional style for selected
@@ -122,6 +126,10 @@
first.setHeight("100%");
panel.setCellHeight(first, "100%");
panel.setCellWidth(rest, "100%");
+ setStyleName(first.getElement().getParentElement(),
+ "gwt-TabBarFirst-wrapper");
+ setStyleName(rest.getElement().getParentElement(),
+ "gwt-TabBarRest-wrapper");
}
/**