click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r736079 - /incubator/click/trunk/click/extras/src/org/apache/click/extras/tree/Tree.java
Date Tue, 20 Jan 2009 19:48:23 GMT
Author: sabob
Date: Tue Jan 20 11:48:22 2009
New Revision: 736079

URL: http://svn.apache.org/viewvc?rev=736079&view=rev
Log:
Ensure newline is char is available even if renderValue is overriden. IE hack

Modified:
    incubator/click/trunk/click/extras/src/org/apache/click/extras/tree/Tree.java

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/tree/Tree.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/tree/Tree.java?rev=736079&r1=736078&r2=736079&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/tree/Tree.java (original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/tree/Tree.java Tue Jan
20 11:48:22 2009
@@ -1121,6 +1121,9 @@
 
         //renders the node value
         renderValue(buffer, treeNode);
+
+        // IE requires a newline here otherwise a large space appear between
+        buffer.append("\n");
         buffer.elementEnd("span");
     }
 
@@ -1171,7 +1174,6 @@
             buffer.append(treeNode.getValue());
         }
         buffer.elementEnd("a");
-        buffer.append("\n");
     }
 
     /**



Mime
View raw message