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 2010/04/29 17:32:10 UTC

svn commit: r939348 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIGridLayout.java

Author: lofwyr
Date: Thu Apr 29 15:32:09 2010
New Revision: 939348

URL: http://svn.apache.org/viewvc?rev=939348&view=rev
Log:
TOBAGO-606: layout manager
 - when there a too few components, they should be handle in the same manner like cells with rendered=false

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIGridLayout.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIGridLayout.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIGridLayout.java?rev=939348&r1=939347&r2=939348&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIGridLayout.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIGridLayout.java Thu Apr 29 15:32:09 2010
@@ -93,7 +93,7 @@ public abstract class AbstractUIGridLayo
       for (int j = 0; j < heads2.length; j++) {
         Cell cell = grid.getCell(i, j, orientation);
         // check rendered = false
-        if (neitherRendered && (cell == null || cell.getComponent().isRendered())) {
+        if (cell != null && cell.getComponent().isRendered()) {
           neitherRendered = false;
         }
         // recursion