portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed-2/taglibs/treecontrol/src/java/org/apache/jetspeed/portlets/tags PortletTreeControlTag.java
Date Sun, 23 Jan 2005 21:57:50 GMT
jford       2005/01/23 13:57:50

  Modified:    taglibs/treecontrol/src/java/org/apache/jetspeed/portlets/tags
                        PortletTreeControlTag.java
  Log:
  Make sure that text does not wrap, thus affecting lines connecting
  
  Revision  Changes    Path
  1.5       +12 -1     jakarta-jetspeed-2/taglibs/treecontrol/src/java/org/apache/jetspeed/portlets/tags/PortletTreeControlTag.java
  
  Index: PortletTreeControlTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/taglibs/treecontrol/src/java/org/apache/jetspeed/portlets/tags/PortletTreeControlTag.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PortletTreeControlTag.java	15 Oct 2004 21:47:25 -0000	1.4
  +++ PortletTreeControlTag.java	23 Jan 2005 21:57:50 -0000	1.5
  @@ -225,7 +225,17 @@
           // Render the icon for this node (if any)
           out.print("    <td colspan=\"");
           out.print(width - level + 1);
  -        out.print("\">");
  +        out.print("\"");
  +        
  +        if(node.getLabel() != null)
  +        {
  +            //make sure text does not wrap
  +            out.print(" style=\"");
  +            out.print("white-space:nowrap;");
  +            out.print("\"");
  +        }
  +        
  +        out.print(">");
           if (node.getIcon() != null) {
               if (hyperlink != null) {
                   out.print("<a href=\"");
  @@ -280,6 +290,7 @@
                       out.print(labelStyle);
                       out.print("\"");
                   }
  +                
                   /* Invalid, not used, and not usefull
                   // to refresh the tree in the same 'self' frame
                   out.print(" onclick=\"");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message