[Zope-Checkins] CVS: Zope/lib/python/Products/PythonScripts/www - pyScriptEdit.dtml:1.8

Andreas Jung andreas@andreas-jung.com
Sun, 6 Jul 2003 06:44:41 -0400


Update of /cvs-repository/Zope/lib/python/Products/PythonScripts/www
In directory cvs.zope.org:/tmp/cvs-serv8091/lib/python/Products/PythonScripts/www

Modified Files:
	pyScriptEdit.dtml 
Log Message:
     - Collector #628: Applied patch to fix several textarea resize
       problems.


=== Zope/lib/python/Products/PythonScripts/www/pyScriptEdit.dtml 1.7 => 1.8 ===
--- Zope/lib/python/Products/PythonScripts/www/pyScriptEdit.dtml:1.7	Fri Apr 27 16:27:47 2001
+++ Zope/lib/python/Products/PythonScripts/www/pyScriptEdit.dtml	Sun Jul  6 06:44:07 2003
@@ -82,9 +82,15 @@
   <tr>
     <td align="left" valign="top" colspan="2">
   <div style="width: 100%;">
-  <textarea name="body:text" wrap="off" style="width: 100%;"
-   cols=<dtml-var dtpref_cols html_quote missing="50">
-   rows=<dtml-var dtpref_rows html_quote missing="20">>&dtml-body;</textarea>
+  <dtml-let cols="REQUEST.get('dtpref_cols', '100%')"
+            rows="REQUEST.get('dtpref_rows', '20')">
+  <dtml-if "cols[-1]=='%'">
+  <textarea name="body:text" wrap="off" style="width: &dtml-cols;;"
+  <dtml-else>
+  <textarea name="body:text" wrap="off" cols="&dtml-cols;"
+  </dtml-if>
+            rows="&dtml-rows;">&dtml-body;</textarea>
+  </dtml-let>
   </div>
     </td>
   </tr>