You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by pm...@apache.org on 2008/05/22 15:21:20 UTC

svn commit: r659102 - in /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule: ScheduleCompactMonthRenderer.java ScheduleCompactWeekRenderer.java

Author: pmahoney
Date: Thu May 22 06:21:20 2008
New Revision: 659102

URL: http://svn.apache.org/viewvc?rev=659102&view=rev
Log:
Restore variable row height, as per TOMAHAWK-349

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/ScheduleCompactMonthRenderer.java
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/ScheduleCompactWeekRenderer.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/ScheduleCompactMonthRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/ScheduleCompactMonthRenderer.java?rev=659102&r1=659101&r2=659102&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/ScheduleCompactMonthRenderer.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/ScheduleCompactMonthRenderer.java Thu May 22 06:21:20 2008
@@ -196,7 +196,7 @@
     {
         if (schedule != null) {
             int height = schedule.getCompactMonthRowHeight();
-            return height <= 0 ? getDefaultRowHeight() : height;
+            return height == 0 ? getDefaultRowHeight() : height;
         }
         return getDefaultRowHeight();
     }

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/ScheduleCompactWeekRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/ScheduleCompactWeekRenderer.java?rev=659102&r1=659101&r2=659102&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/ScheduleCompactWeekRenderer.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/ScheduleCompactWeekRenderer.java Thu May 22 06:21:20 2008
@@ -142,7 +142,7 @@
     {
         if (schedule != null) {
             int height = schedule.getCompactWeekRowHeight();
-            return height <= 0 ? getDefaultRowHeight() : height;
+            return height == 0 ? getDefaultRowHeight() : height;
         }
         return getDefaultRowHeight();
     }