[Zope-Checkins] CVS: Zope/lib/python/Products/ZSQLMethods/dtml - edit.dtml:1.5
Andreas Jung
andreas@andreas-jung.com
Sun, 6 Jul 2003 06:44:52 -0400
Update of /cvs-repository/Zope/lib/python/Products/ZSQLMethods/dtml
In directory cvs.zope.org:/tmp/cvs-serv8091/lib/python/Products/ZSQLMethods/dtml
Modified Files:
edit.dtml
Log Message:
- Collector #628: Applied patch to fix several textarea resize
problems.
=== Zope/lib/python/Products/ZSQLMethods/dtml/edit.dtml 1.4 => 1.5 ===
--- Zope/lib/python/Products/ZSQLMethods/dtml/edit.dtml:1.4 Sun Dec 22 12:54:08 2002
+++ Zope/lib/python/Products/ZSQLMethods/dtml/edit.dtml Sun Jul 6 06:44:17 2003
@@ -57,11 +57,15 @@
</tr>
<tr>
<td align="left" valign="top" colspan="2">
- <div style="width: 100%;">
- <textarea name="template:text" wrap="off" style="width: 100%;"
- cols=<dtml-var sql_pref__cols html_quote missing="60">
- rows=<dtml-var sql_pref__rows html_quote missing="20">>&dtml-src;</textarea>
- </div>
+ <dtml-let cols="REQUEST.get('dtpref_cols', '100%')"
+ rows="REQUEST.get('dtpref_rows', '20')">
+ <dtml-if expr="cols[-1]=='%'">
+ <textarea name="template:text" wrap="off" style="width: &dtml-cols;;"
+ <dtml-else>
+ <textarea name="template:text" wrap="off" cols="&dtml-cols;"
+ </dtml-if>
+ rows="&dtml-rows;">&dtml-src;</textarea>
+ </dtml-let>
</td>
</tr>