[Yanel-commits] rev 26621 - in public/yanel/trunk/src/contributions/resources/timeline: . src/java/edu/mit/simile/yanel/impl/resources/timeline

michi at wyona.com michi at wyona.com
Thu Aug 9 09:33:46 CEST 2007


Author: michi
Date: 2007-08-09 09:33:46 +0200 (Thu, 09 Aug 2007)
New Revision: 26621

Modified:
   public/yanel/trunk/src/contributions/resources/timeline/resource.xml
   public/yanel/trunk/src/contributions/resources/timeline/src/java/edu/mit/simile/yanel/impl/resources/timeline/TimelineResource.java
Log:
height made configurable

Modified: public/yanel/trunk/src/contributions/resources/timeline/resource.xml
===================================================================
--- public/yanel/trunk/src/contributions/resources/timeline/resource.xml	2007-08-09 07:33:24 UTC (rev 26620)
+++ public/yanel/trunk/src/contributions/resources/timeline/resource.xml	2007-08-09 07:33:46 UTC (rev 26621)
@@ -12,5 +12,6 @@
 <rtd>
   <property name="href"/>
   <property name="title"/>
+  <property name="height"/> <!-- sample value 250px -->
 </rtd>
 </resource>

Modified: public/yanel/trunk/src/contributions/resources/timeline/src/java/edu/mit/simile/yanel/impl/resources/timeline/TimelineResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/timeline/src/java/edu/mit/simile/yanel/impl/resources/timeline/TimelineResource.java	2007-08-09 07:33:24 UTC (rev 26620)
+++ public/yanel/trunk/src/contributions/resources/timeline/src/java/edu/mit/simile/yanel/impl/resources/timeline/TimelineResource.java	2007-08-09 07:33:46 UTC (rev 26621)
@@ -145,7 +145,9 @@
         sb.append("<p>Today's Date (server time): " + todaysDate + "</p>");
         sb.append("<p>XML: <a href=\"" + getResourceConfigProperty("href") + "\">" + getResourceConfigProperty("href") + "</a></p>");
 
-        sb.append("<div id=\"my-timeline\" style=\"height: 250px; border: 1px solid #aaa\"></div>");
+        String height = getResourceConfigProperty("height");
+        if (height == null) height = "250px";
+        sb.append("<div id=\"my-timeline\" style=\"height: " + height + "; border: 1px solid #aaa\"></div>");
         sb.append("</body>");
         sb.append("</html>");
         return sb;



More information about the Yanel-commits mailing list