Author: sergeyhalipov
Date: 2007-10-18 08:50:31 -0400 (Thu, 18 Oct 2007)
New Revision: 3440
Modified:
trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java
trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java
Log:
http://jira.jboss.com/jira/browse/RF-1144
Modified:
trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java
===================================================================
---
trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java 2007-10-18
12:34:45 UTC (rev 3439)
+++
trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java 2007-10-18
12:50:31 UTC (rev 3440)
@@ -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:
trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java
===================================================================
---
trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java 2007-10-18
12:34:45 UTC (rev 3439)
+++
trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java 2007-10-18
12:50:31 UTC (rev 3440)
@@ -390,11 +390,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) + ";
";
}
}