Closed Bug 96642 Opened 23 years ago Closed 21 years ago

Mail Compose 'To' field is not resizable

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.4alpha

People

(Reporter: rsmyth, Assigned: neil)

References

Details

(Keywords: l12y, Whiteboard: [adt3][ish])

Attachments

(5 files)

In the Mail Compose window, when 'Newsgroup' is selected in the addressee field 
the text becomes truncated in localised builds - see attached image.
This field should be resizable, localised text normally expands by up to 20-30%.
This is related to bugscape bug no. 8896
Attached image mailcompose truncation
Adding l12y keyword
Changed the component and reassigned to mscott. Please reassign to appropriate 
person. Thanks.
Status: UNCONFIRMED → NEW
Component: Localization → Mail Window Front End
Ever confirmed: true
Keywords: l12y
Reassigned.
Assignee: rchen → mscott
ji - is this one still valid?
I don't see this problem on a Ja build, but it could be because the Ja string is
shorter. Rose, do you still have this problem on a German or French build?
Yes, the problem is still there for German and French. The field needs to be
resizable to accomodate text expansion due to localisation. 
we should fix this for Mach V. Nominating
Keywords: nsbeta1
Status: NEW → ASSIGNED
Keywords: nsbeta1nsbeta1-
mscott, please reconsider the bug again. This bug is really ugly. 
->nsbeta1.
renominating; I don't know why it was marked nsbeta1-. It's critical for l10n
Keywords: nsbeta1-nsbeta1
Discussed in 2/26 bug meeting with Mktg Engineering and PjM.  Decision was to
nsbeta1 minus, reassign to varada, and move to Future.
Assignee: mscott → varada
Status: ASSIGNED → NEW
Keywords: nsbeta1nsbeta1-
Target Milestone: --- → Future
Working on it now.
The "listcol-addressingWidget" width needs to move from "messengercompose.css" 
to a dtd file.
Please review the above patch.
This problem described here also happen in US build. With 2002-02-28 build, texts 
got cut off after the 5th characters in the "Reply to", "Follow up", and 
"Newsgroup" fields. How do users know what the labels really are? Isn't this a
usability issue?
I do not see the problem with the US builds using Mar-01-2002 build. The patch
is good but I dont know about the guidelines for moving styles from CSS to DTD
files. I think you should clarify with someone like andreww@netscape.com or
hewitt@netscape.com
I think this is a no-no for several reasons: 
1) there  should never be in-lined style references in xul. Even if 
somethign is hard-coded via a content stylesheet - it should reside in a 
.css file, not in the .xul file
2) style information should not reside in a .dtd file.  This sets a dangerous 
precendent for there being too many cross - dependancies on a dtd to 
have some skin appear properly.

Couldnt this be solved fairly easily by setting a max-width and a min-width 
on that field in the .css file?
for instance :  


 #listcol-addressingWidget {
   min-width: 9em;
  max-width: 13em;
   border-right: 1px solid #CACAFF;

Also it looks like the text of the addressing widget is not overflowing 
properly like foobar... not having text float off into another widget. 

So, no - this is not an acceptible solution. I'd be happy to help you find a 
way to do this that doesnt cross the DTD/XUL/CSS boundaries.



I agree with the earlier comment by andreww, we can't be moving style
information into the locale.
Just did test by setting the min-width/max-width in css suggested by andreww, doesn't work, the width won't change with long string.
The current workaround for this bug:
In DE build, increase the width in addressingWidget.css, in both modern.jar and
classic.jar:
  #listcol-addressingWidget {
    width: 9em;
    border-right: 1px solid #C4CADC;
  }
Blocks: 154425
Blocks: 157673
removing "-" to nsbeta1 for buffy
Keywords: nsbeta1-nsbeta1
is this a problem for japanese?
Since Ja translation for "To" is much shorter, this won't be a problem for Ja
version of the product.
but we are going to have the problem for DE, this bug was originally reported by
DE team, see comment #1...
Even with English build, the "Follow-up", "Newsgroup", and "Reply-to" labels are
trimmed.
> is this a problem for japanese?
Yes, the "Newsgroup" is truncated.
Whiteboard: [ish]
Int'l triage team recommends nsbeta1+
taking all of varada's bugs.
Assignee: varada → sspitzer
changing qa contact
QA Contact: ji → marina
Mail triage team: nsbeta1+/adt3
Keywords: nsbeta1nsbeta1+
Whiteboard: [ish] → [adt3][ish]
{ width: auto } makes the column size to the longest visible entry,
not to the size of the drop-down...
Attached patch Proposed patchSplinter Review
Comment on attachment 113906 [details] [diff] [review]
Proposed patch

I checked the other users of listcol to make sure that they don't mind removing
the width leaving the min-width as per treecol.

I'm assuming that there are no other users of .menulist-compact :-)

You may want to change the width: 9em; into min-width: 9em; rather than
deleting it.
Attachment #113906 - Flags: superreview?(sspitzer)
Attachment #113906 - Flags: review?(yxia)
Seems I am not allowed to click "Edit" in the action column, you better ask
someone else. Myself think it's good to "makes the column size to the longest
visible entry".
here's an easy way to reproduce this in english builds.

use the hidden "mail.compose.other.header" pref.

see http://www.mozilla.org/mailnews/arch/hiddenprefs.html

re-assign to neil, since he has a fix.
Assignee: sspitzer → neil
Comment on attachment 113906 [details] [diff] [review]
Proposed patch

since this is xpfe, I think jag is the right person to review.

I'll give the sr once he does the review.
Attachment #113906 - Flags: review?(yxia) → review?(jaggernaut)
Comment on attachment 113906 [details] [diff] [review]
Proposed patch

r=jag
Attachment #113906 - Flags: review?(jaggernaut) → review+
Comment on attachment 113906 [details] [diff] [review]
Proposed patch

sr=sspitzer

this can wait for 1.4 alpha.

thanks neil!
Attachment #113906 - Flags: superreview?(sspitzer) → superreview+
accepting, and assigning to 1.4 alpha, on neil's behalf.
Status: NEW → ASSIGNED
Target Milestone: Future → mozilla1.4alpha
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
the label fields will change dynamically now.

for example, compose a message and have to,cc,cc,cc,cc,cc,newsgroup

the widths of all the addresses will change as the newsgroup entry is visible or
not.

this is probably already logged, but I haven't queried for it.

supplimental patch (suggested by neil) to help make the problem I pointed out
not as bad on US-ASCII builds.
I've checked in the supplimental patch, to try to make things better for en-US
builds, but still fix the problem for localized builds.

thanks for neil for the suggestion.
this might have caused a problem with the mail search/ab search/filter/view dialog.

from shuehan:

"in the search dialog, in the search term listbox, when you select different
things in the menulists, they change widths."

I see this too, and think it might have been this change.  
I think the fix will be to add min-widths, like neil suggested we do for compose.
the regression I just mentioned is now bug #195313, assigned to shliang
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: