[Zope-Checkins] CVS: Zope/lib/python/OFS/dtml - documentEdit.dtml:1.6
Casey Duncan
casey@zope.com
Fri, 12 Apr 2002 15:25:18 -0400
Update of /cvs-repository/Zope/lib/python/OFS/dtml
In directory cvs.zope.org:/tmp/cvs-serv12251/lib/python/OFS/dtml
Modified Files:
documentEdit.dtml
Log Message:
Fix for Bug#96: Narrower/Wider buttons now work in CSS browsers. This is only
in affect for DTML thus far.
=== Zope/lib/python/OFS/dtml/documentEdit.dtml 1.5 => 1.6 ===
<tr>
<td align="left" valign="top" colspan="2">
- <div style="width: 100%;">
- <textarea name="data:text" wrap="off" style="width: 100%;"<dtml-if
- dtpref_cols> cols="<dtml-var dtpref_cols>"<dtml-else
- > cols="50"</dtml-if><dtml-if dtpref_rows> rows="<dtml-var
- dtpref_rows>"<dtml-else> rows="20"</dtml-if>><dtml-var
- __str__></textarea>
- </div>
+ <dtml-let cols="_.int(REQUEST.get('dtpref_cols',70))"
+ width="_.min(_.int(_.float(dtpref_cols)/70.0 * 100.0),100)">
+ <textarea name="data:text" wrap="off" style="width:&dtml-width;%"
+ cols="&dtml-cols;" rows="<dtml-var dtpref_rows missing="20">"
+ ><dtml-var __str__></textarea>
+ </dtml-let>
</td>
</tr>
</dtml-with>