[horde] IMP compose textfield very narrow (update)
Jason Dixon
jason at dixongroup.net
Thu Sep 8 16:58:09 PDT 2005
On Sep 8, 2005, at 1:14 PM, Jason Dixon wrote:
> On Sep 8, 2005, at 11:04 AM, Jason Dixon wrote:
>
>> I'm not sure when or how this happened, but the compose textfield is
>> only 20 characters wide. Where might this value be stored and how
>> could it have gotten changed? It's not a rendering bug, I tested on
>> all browsers.
>
> Whoa, this is really weird. Everything is back to normal now, and I
> haven't touched the server. I had at least four people report this
> behavior (not including myself) yesterday and through this morning.
> Any idea what could have caused this?
Sorry to self-reply, but the situation has changed yet again. The
problem has started up again, but not for me. I had one of the users
send me the html source from the capture window, and I noticed that
the message input is missing a value for cols. (cols=""). I looked
through the IMP source and found the relevant line in imp/templates/
compose/compose.inc:
< <textarea class="composebody" tabindex="<?php echo $tabindex+
+ ?>" name="message" id="message
" rows="20" cols="<?php echo $prefs->getValue('wrap_width') ?>"><?php
echo htmlspecialchars($msg) ?><
/textarea>
And the same thing from CVS:
> <textarea class="composebody" tabindex="<?php echo $tabindex+
+ ?>" name="message" id="message
" rows="20" cols="80"><?php echo htmlspecialchars($msg) ?></textarea>
Why is the wrap_width value from IMP-4.0.3 empty for these users?
Why doesn't it default to a valid non-zero value? And is there any
reason to hardcode this value for all users, or should I just edit
the template to make cols="80" permanently?
Thanks,
--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net
More information about the horde
mailing list