You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2013/05/22 11:30:03 UTC
svn commit: r1485131 -
/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/util/RenderUtils.java
Author: lofwyr
Date: Wed May 22 09:30:03 2013
New Revision: 1485131
URL: http://svn.apache.org/r1485131
Log:
TOBAGO-1251: tc:link is calculated to narrow when using "auto", especially when images are used
- adding 10% to the width
Modified:
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/util/RenderUtils.java
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/util/RenderUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/util/RenderUtils.java?rev=1485131&r1=1485130&r2=1485131&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/util/RenderUtils.java (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/util/RenderUtils.java Wed May 22 09:30:03 2013
@@ -221,6 +221,8 @@ public class RenderUtils {
}
}
+ width += width / 10 + 1; // fixes the problem, that sometime some browsers add some pixels
+
return Measure.valueOf(width);
}