Closed Bug 362919 Opened 18 years ago Closed 18 years ago

message pane is too wide due to alert bar's minimum-width

Categories

(Thunderbird :: Mail Window Front End, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mad_maks, Assigned: mscott)

References

Details

(Keywords: fixed-seamonkey1.1.1, fixed1.8.1.2, regression)

Attachments

(6 files, 3 obsolete files)

when i use the preview pane in build version 2 beta 1 (20061205) the pane is to wide. The button "not scam" / show images are off screen. (see screenshot)
Attached image screenshot 1
Attached image screenshot 2
when you open TB in safe mode , does it give same result ?
http://kb.mozillazine.org/Safe_mode
In TB 2, the alert bar no longer wraps its text when it's made narrow; it has a minimum width which (in the English version, anyway) is wide enough for the text "To protect your privacy..." plus the icon and the Load Images button.  If the window is narrowed below that width, the window edge will start to encroach on the bar (and on the message body, too, which never gets narrower than the alert bar, if there is one).

It's true that, with the spam or scam alerts, there is now a lot of blank space in the alert bar at the minimum width.


Please don't set a target when you're filing a bug; that field is for use by the developers.
Severity: normal → trivial
Keywords: regression
OS: Linux → All
Hardware: PC → All
Target Milestone: Thunderbird2.0 → ---
Version: unspecified → 2.0
Summary: preview pane is to big (scam/spam) → message pane is too wide due to alert bar's minimum-width
Two things jump out at me here:

1) The "to protect your privacy" text should still wrap, I'm not sure why that broke, I could have sworn it worked when I first landed the UI changes to the privacy bar. 

2) The text shouldn't have a minimum width. It's designed to take as much space as it needs, then there's a spring that keeps the button as far right as possible.  But when I shrink the window now, it sure looks like something is keeping that from working right. 
Flags: blocking-thunderbird2+
(In reply to comment #3)
> when you open TB in safe mode , does it give same result ?
> http://kb.mozillazine.org/Safe_mode
> 

yes if the folderpane is at the same width.
(In reply to comment #4)
> 
> minimum width which (in the English version, anyway) is wide enough for the
> text "To protect your privacy..." plus the icon and the Load Images button.  

that is very bad for l10n, in i.e. nl the text is much longer.
*** Bug 363582 has been marked as a duplicate of this bug. ***
*** Bug 364211 has been marked as a duplicate of this bug. ***
Attached patch agressive fix (obsolete) — Splinter Review
This patch fixes two problems:

the containing vbox needed flex in order to allow the remote image description text to wrap.

In order to make things work exactly like they did in 1.5.0.9, I had to also revert the label back to a description element but as Neil pointed out the text-link class is really for labels not descriptions. Not sure which trade off to make here.

One comprise might be to just add the flex to the box, this fixes the initial junk bar problem reported here. But would be nice to get that 2nd line of text for the remote image bar to also wrap.

Partially asking Neil for a review / advice on what to do with the label.
Attachment #251588 - Flags: review?(neil)
Attached patch lower risk, complementary patch (obsolete) — Splinter Review
this makes things a bit better as the description text will start wrapping again, but the dynamically generated label still won't wrap until Neil and I figure something out. It's still worth adding the flex to the box as it does make tis problem better.
Attachment #251601 - Flags: superreview?(bienvenu)
(In reply to comment #10)
>In order to make things work exactly like they did in 1.5.0.9, I had to also revert
>the label back to a description element but as Neil pointed out the text-link class
>is really for labels not descriptions. Not sure which trade off to make here.
One option is to add the crop attribute to the label.

I tried <label class="text-link">foo</label> on trunk but it didn't underline.
Attachment #251601 - Flags: superreview?(bienvenu) → superreview+
Tim, this should be a lot better in beta 2. I landed the "lower risk, complementary fix" in time for beta 2 last night. Can you test today's nightly or beta 2 when it comes out?

Attached image screenshot 3
it is a lot better but still not ok.
see this screenshot
right, the problem with the remote content bar requires a fix like the more aggressive patch (or at least a version that works better than that one :)). The simple fix that went in addressed the problem for the junk and phishing bar.
Attached image screenshot 4
it didn't fix that problem also not totally
Attached patch Suite version (obsolete) — Splinter Review
While I was there I thought I'd clean up some of the other flexes too.
I also added the crop="end" on the label as an interim fix.
I think the lack of underlining on <label class="text-link">Click here...<label> might be a Gecko bug.
Attachment #252252 - Flags: review?(iann_bugzilla)
Filed the underlining issue on trunk as bug 367745.
Attachment #252252 - Attachment is obsolete: true
Attachment #252468 - Flags: review?(iann_bugzilla)
Attachment #252252 - Flags: review?(iann_bugzilla)
Comment on attachment 251588 [details] [diff] [review]
agressive fix

>-    document.getElementById('allowRemoteContentForAuthorDesc').value = 
>+    document.getElementById('allowRemoteContentForAuthorDesc').childNodes[0].nodeValue = 
>       gMessengerBundle.getFormattedString('alwaysLoadRemoteContentForSender', [emailAddress ? emailAddress : aMsgHdr.author]);
If you use .textContent instead (see attachment 252468 [details] [diff] [review]) you don't need the foo.

>-        <label id="allowRemoteContentForAuthorDesc" class="text-link" flex="1"
>-               onclick="allowRemoteContentForSender();"/>
>+        <description id="allowRemoteContentForAuthorDesc" class="text-link" flex="1"
>+               onclick="allowRemoteContentForSender();">foo</description>
Leave this as a label. r=me with this fixed.
Attachment #251588 - Flags: review?(neil) → review+
Comment on attachment 252468 [details] [diff] [review]
Fixed suite patch

r=me definite improvement
Attachment #252468 - Flags: review?(iann_bugzilla) → review+
updated patch based on Neil's review comments and to pick up the flex changes he made to the suite which look good too.
Attachment #251588 - Attachment is obsolete: true
Attachment #251601 - Attachment is obsolete: true
Attachment #252553 - Flags: superreview+
Neil, do you want to nominate the suite patch for the branch?
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1.2
Resolution: --- → FIXED
(In reply to comment #22)
>Neil, do you want to nominate the suite patch for the branch?
Hey, let me check it in on trunk first ;-)

As this is suite-only code I'd normally set our approval-seamonkey1.1.1 flag but as this product doesn't have it I'll just poke someone on IRC :-)
approval-seamonkey1.1.1=me
I think there was an unintended side effect with using .textContent for the text-link label in ths patch. The label is no longer underlined like it should be since it's a link. Neil, do you know why using .textContent would have broken that?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: