Closed Bug 594369 Opened 14 years ago Closed 14 years ago

Message header is not aligned to left on RTL Thunderbird

Categories

(Thunderbird :: Message Reader UI, defect)

defect
Not set
normal

Tracking

(blocking-thunderbird3.1 -, thunderbird3.1 wontfix)

VERIFIED FIXED
Thunderbird 3.3a2
Tracking Status
blocking-thunderbird3.1 --- -
thunderbird3.1 --- wontfix

People

(Reporter: tomer, Assigned: andreasn)

References

()

Details

(Keywords: rtl)

Attachments

(5 files, 2 obsolete files)

On Thunderbird 3.1, we've merged the sender header with the reply/forward buttons. A forum post on mozilla-il [1] hints that we have forgot to make sure it is aligned to the right window edge like other message headers. 

I'll be attaching screenshots to demonstrate the issue. These images were captured by Nethaneel. 


[1] http://mozilla.org.il/board/viewtopic.php?t=9292
This seems like a pretty painful usability stain.  Tomer, do you have any feel for how bad the hebrew community would perceive this to be?  Do you have any feel for how much it's likely to effect willingness to use the product?
blocking-thunderbird3.1: --- → ?
blocking-thunderbird3.2: --- → needed
Tomer, another question: do you have any suggestions for ways in which we could get more users of the Hebrew locale using beta and release candidate versions and giving us feedback earlier?
Attached patch patch to fix the issue (obsolete) — Splinter Review
This should do the trick. Who wants to review? Do we need a ui-r?
I would like to test the patch, Is there any Hebrew build available for Win / Linux with this patch? if not, i can build it myself from source on Debian with manual adding of the patch, it will just take some more time.
(In reply to comment #6)
> I would like to test the patch, Is there any Hebrew build available for Win /
> Linux with this patch? if not, i can build it myself from source on Debian with
> manual adding of the patch, it will just take some more time.

I think I should be able to get some test builds out with it later today.
The builds will be available from here:

http://ftp.mozilla.org/pub/mozilla.org/thunderbird/tryserver-builds/bugzilla@standard8.plus.com-7d428b786c74/

Linux builds are already available, Windows builds will be there in about an hour.
Comment on attachment 477099 [details] [diff] [review]
patch to fix the issue

Here's an unsolicited RTL-ui-r+ for you!  Thanks!
Attachment #477099 - Flags: ui-review+
(In reply to comment #8)
> Linux builds are already available, Windows builds will be there in about an
> hour.

The windows build isn't going to complete without some tweaking, do you need it?
(In reply to comment #10)
> (In reply to comment #8)
> > Linux builds are already available, Windows builds will be there in about an
> > hour.
> 
> The windows build isn't going to complete without some tweaking, do you need
> it?

I use Win as testing OS, so when there is Linux version it is enough, and obviously the patch fixed the issue, thanks!
Attachment #477099 - Flags: review?(bwinton)
Assignee: nobody → nisses.mail
Comment on attachment 477099 [details] [diff] [review]
patch to fix the issue

>+++ b/mail/themes/gnomestripe/mail/messageHeader.css
>@@ -679,3 +679,11 @@
> .hdrTrashButton > .button-box > .button-icon {
>   list-style-image: url("moz-icon://stock/gtk-delete?size=menu");
> }
>+
>+#header-view-toolbox:-moz-locale-dir(rtl) {
>+  float: left;
>+}
>+
>+#header-view-toolbox:-moz-locale-dir(ltr) {
>+  float: right;
>+}

I would rather the selectors were in the opposite order, and we removed the -moz-locale-dir(ltr), like this:
#header-view-toolbox {
  float: right;
}

#header-view-toolbox:-moz-locale-dir(rtl) {
  float: left;
}

But that's pretty minor, so I'll say r=me with that changed and tested.

Thanks,
Blake.
Attachment #477099 - Flags: review?(bwinton) → review+
blocking-thunderbird3.1: ? → needed
Andreas, can you update the patch sometime soon please?
blocking-thunderbird3.1: needed → .6+
Attached patch updated patch (obsolete) — Splinter Review
Updated patch to reflect Blake's review. Ready for checkin!
Attachment #477099 - Attachment is obsolete: true
Attachment #483945 - Flags: ui-review+
Attachment #483945 - Flags: review+
Keywords: checkin-needed
Is this the correct patch? It looks more like a Migration Assistant RTL fix...
Yes, this seems to need a new patch...
Keywords: checkin-needed
I think this is basically the patch Andreas wanted to post.
p=andreasn, r=bwinton, ui-r=ehsan.
Attachment #483945 - Attachment is obsolete: true
Comment on attachment 485725 [details] [diff] [review]
Andreas' patch with my suggested fixes. (backed out)

Cause it's small, and it's a 3.1.6 blocker.

(We might want to let this bake on comm-central for a while first.  Or maybe not.  Your call.  :)

Thanks,
Blake.
Attachment #485725 - Flags: approval-thunderbird3.1.6?
Attachment #485725 - Attachment description: Andreas' patch with my suggested fixes. → Andreas' patch with my suggested fixes. (checked in on comm-central.)
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment on attachment 485725 [details] [diff] [review]
Andreas' patch with my suggested fixes. (backed out)

This brakes qute in recent tinderbox builds, the toolbar is always flushed to the left in Windows even in en-US locale.

>-                   style="float: right;">

That appears to be the culprit: removed in msgHdrViewOverlay.xul but then you've patched only gnomestripe and not the other default themes, right?
Attachment #485725 - Flags: approval-thunderbird3.1.6?
Ooh, good catch, rsx11m!

Backed out as http://hg.mozilla.org/comm-central/rev/868231407a2b

And on that note, I think I'm going to let Andreas post his patch instead.  (One mess up per commit is enough for me.  ;)

Thanks,
Blake.
Attachment #485725 - Attachment description: Andreas' patch with my suggested fixes. (checked in on comm-central.) → Andreas' patch with my suggested fixes. (backed out)
Attached patch new patchSplinter Review
Lets hope that this is the right patch this time :)
This addresses the issue on Windows and OS X too.
It seems it works as it should on Windows. My OSX build is busted right now, but I expect the same thing to happen there.

Blake wondered why the patch carried the following snippet:
-.hdrArchiveButton {
+.hdrArchiveButton {
   list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
   -moz-image-region: rect(0px 480px 24px 456px);
}

Apparently it's because the file used to have dos line endings, but now it has unix line endings, and we prefer that.

He also said it got an r+, so checkin-needed.
Comment on attachment 491824 [details] [diff] [review]
new patch

This carries over the earlier review +'es.
Attachment #491824 - Flags: ui-review+
Attachment #491824 - Flags: review+
Keywords: checkin-needed
Checked in: http://hg.mozilla.org/comm-central/rev/191d148a57e0

Please can someone check this in tomorrow's builds.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.3a2
Looks ok to me in today's Windows builds for LTR locale, thus no regression
this time. I don't have any RTL builds though to test the issue to be fixed.
You can simulate an RTL build by setting intl.uidirection.en-US (or any other locale) to "rtl" in about:config
Comment on attachment 491824 [details] [diff] [review]
new patch

a=Standard8 for 3.1.7.
Attachment #491824 - Flags: approval-thunderbird3.1.7+
Checked into 1.9.2: http://hg.mozilla.org/releases/comm-1.9.2/rev/ccbd827a5141
blocking-thunderbird3.2: needed → ---
Verified fixed Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.14pre) Gecko/20101126 Lanikai/3.1.7pre with pref-based rtl per comment #27.
Status: RESOLVED → VERIFIED
Blocks: 617306
Is there any standardized way to inform theme developers that this change is effective with 3.1.7 and that they need to do something? See bug 617306.
(In reply to comment #31)
> Is there any standardized way to inform theme developers that this change is
> effective with 3.1.7 and that they need to do something? See bug 617306.

Hang on, this affected themes? I didn't realise that when I approved it - we don't normally take add-on compatibility affecting changes on stable branches. I'll re-open that bug and discuss with drivers later.
Backed out from the 3.1.7 builds and branches due to the regressions for add-ons (the security & stability branches shouldn't affect add-ons).

http://hg.mozilla.org/releases/comm-1.9.2/rev/0f12f5133c67
http://hg.mozilla.org/releases/comm-1.9.2/rev/f85a2c5971a3

At the moment this will mean that the sender header will remain incorrectly aligned on RTL builds of 3.1.x, unless we can find a solution that doesn't affect themes.

The next major version of Thunderbird will pick up this fix regardless.
blocking-thunderbird3.1: .7+ → ?
Attachment #491824 - Flags: approval-thunderbird3.2a1?
Attachment #491824 - Flags: approval-thunderbird3.1.7-
Attachment #491824 - Flags: approval-thunderbird3.1.7+
As this issue won't be fixed for 3.1.x branch, can it be fixed manually and temporary by UserChrome.css or by addon? Should this issue be added to the release notes?
blocking-thunderbird3.1: ? → -
Attachment #491824 - Flags: approval-thunderbird3.2a1?
Summary: Message panel 'sender' header is not aligned to the right on RTL Thunderbird 3.1 → Message header is not aligned to left on RTL Thunderbird
Version: 3.1 → Trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: