Author: sergeyhalipov
Date: 2007-10-18 09:12:15 -0400 (Thu, 18 Oct 2007)
New Revision: 3444
Modified:
branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java
branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java
Log:
http://jira.jboss.com/jira/browse/RF-1144
Modified:
branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java
===================================================================
---
branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java 2007-10-18
12:52:19 UTC (rev 3443)
+++
branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java 2007-10-18
13:12:15 UTC (rev 3444)
@@ -235,11 +235,7 @@
UITabPanel pane = tab.getPane();
String headerSpacing = pane.getHeaderSpacing();
Double decoded = HtmlDimensions.decode(headerSpacing);
- if (decoded.doubleValue() != 0) {
- return "width: " + HtmlUtil.qualifySize(headerSpacing);
- } else {
- return "";
- }
+ return "width: " + HtmlUtil.qualifySize(headerSpacing) + ";
";
}
private static final String ONMOUSEOVER = "RichFaces.overTab(this);";
Modified:
branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java
===================================================================
---
branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java 2007-10-18
12:52:19 UTC (rev 3443)
+++
branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java 2007-10-18
13:12:15 UTC (rev 3444)
@@ -388,11 +388,7 @@
public String encodeHeaderSpacing(FacesContext context, UITabPanel pane) throws
IOException {
String headerSpacing = pane.getHeaderSpacing();
Double decoded = HtmlDimensions.decode(headerSpacing);
- if (decoded.doubleValue() != 0) {
- return "width: " + HtmlUtil.qualifySize(headerSpacing);
- } else {
- return "";
- }
+ return "width: " + HtmlUtil.qualifySize(headerSpacing) + ";
";
}
}