Skip to contentSkip to conversation

conga/luci/cluster form-macros

Cluster-devel [email protected] 1 participant 1 message Dec 22, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-12-22 17:18:42

Modified files:
luci/cluster : form-macros

Log message:
luci: cluster.conf editor: size textarea to fit content

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.137&r2=1.138

luci/cluster/form-macros +2 -2
@@ -3879,8 +3879,8 @@
 	      tal:define="ret python: here.process_cluster_conf_editor(request)">
 	  <span tal:content="structure python: ret['msg'].replace('\n', '<br/>')"/>
 	  <textarea name="new_cluster_conf"
-		          rows="80"
-		          tal:content="structure ret/cluster_conf"></textarea>
+		    tal:attributes="rows python: len(ret['cluster_conf'].splitlines()) + 8"
+		    tal:content="structure ret/cluster_conf"></textarea>
 	  <input tal:attributes="type  string:hidden;
 	                         name  string:pagetype;
 	                         value python:request['pagetype']"/>