[Zope-dev] ZMI textareas on Windows IE6 are '100%+' wide, cause scrolling inconvenience

Jeff Kowalczyk jtk@adelphia.net
Fri, 8 Feb 2002 21:02:42 -0500


On my Zope 2.5.0 running on WindowsXP/IE6, the ZMI's textarea boxes, for
things like editing PageTemplates, becomes too wide for the frame when
the vertical scrollbar is required, causing an inconvenient
side-scrolling behavior. The frame must be scrolled sideways to view the
text areas's scrollbars, which then obsures the far left of the
textarea.

This is the code in question (for a PT edit page, there are many others)
      Expand macros when editing
    </td>
  </tr>
  <tr>
    <td align="left" valign="top" colspan="4">
  <div style="width: 100%;">
  <textarea name="text:text" wrap="off" style="width: 100%;"
            cols="40" rows="15">&lt;html metal:define-macro="page"&gt;

Would it not help to make the textarea and div width 90% or so to
account for the potential width of the side-scroll bar on the right-hand
ZMI frame? Or even better, this could become a preference setting, since
some users will have very narrow scrollbars or extreme vertical
resolutions. After all, there is a cols/rows insertion right next to it,
perhaps a new preference setting is easy enough to add...