Closed Bug 436190 Opened 16 years ago Closed 15 years ago

Find Updates button is cut in addons manager for RTL locales

Categories

(Mozilla Localizations :: he / Hebrew, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: tsahi_75, Unassigned)

References

Details

(Keywords: rtl)

Attachments

(3 files)

Mozilla/5.0 (Windows; U; Windows NT 5.1; he; rv:1.9) Gecko/2008051206 Firefox/3.0

when the UI is reversed to RTL (e.g. in Hebrew locale, but most likely Arabic and Persian too), the "Find Updates" (or is it Get Updates? i have the Hebrew version) button at the bottom of the addons manager is cut, so that it's lower third is outside the window and not visible.

the button is visible in the Extensions and Themes tabs.
Attached image screenshot
Looks like a general RTL problem (not specific to any language)
Keywords: rtl
Component: Theme → he-IL / Hebrew
Product: Firefox → Mozilla Localizations
QA Contact: theme → hebrew.he
Version: 3.0 Branch → unspecified
I wonder if using visibility: hidden would be better, as that would leave the space around.
or maybe it's time we fix the resizer bug - bug 240536.
Yea, that sounds like the right thing to do.  I was taking a look at that earlier today.  It's very easy to fix on Windows (just requires something similar to what we are doing for RTL menu popup arrows), but I dunno about Linux/Mac.
Depends on: 240536
Screen shot for Mac OS X shows that the button is visible, but still too close to the bottom of window to feel "comfortable".
OS: Windows XP → All
Hardware: PC → All
(In reply to comment #5)
> Yea, that sounds like the right thing to do.  I was taking a look at that
> earlier today.  It's very easy to fix on Windows (just requires something
> similar to what we are doing for RTL menu popup arrows), but I dunno about
> Linux/Mac.

I gave it a shot, but couldn't get it to work correctly.  Have you tried it in terms of a patch?
(In reply to comment #7)
> I gave it a shot, but couldn't get it to work correctly.  Have you tried it in
> terms of a patch?
> 

I have a WIP patch, but I haven't gotten around to testing it (compiling takes so long, and I'm a little busy)... here's my general approach:

1) Update the appearance of -moz-appearance: resizer (it seems to be used only for Windows and Linux, and it looks like the Linux one is already RTL-friendly, so only the Windows one needs updating; I have no idea where the Mac theme is getting its resizer graphic--could it be built into the window somehow?)

2) Update xul:resizer.  The best way to do this, IMHO, is to add a new "bottomcorner" direction to resizer and have that map to either "bottomright" or "bottomleft" in nsResizerFrame::EvalDirection depending on the frame direction.

3) Update the consumers of xul:resizer.  Change all uses of bottomright to bottomcorner (if that's the approach taken in step 2) and also add a chromedir to it (so that the CSS can determine whether to assign it a se cursor or a sw cursor).
(In reply to comment #8)
> I have a WIP patch, but I haven't gotten around to testing it (compiling takes
> so long, and I'm a little busy)... here's my general approach:

This might help with the compilation times problems: :-)
<http://ehsanakhgari.org/blog/2008-05-29/how-test-your-mozilla-patch-faster>

> 1) Update the appearance of -moz-appearance: resizer (it seems to be used only
> for Windows and Linux, and it looks like the Linux one is already RTL-friendly,
> so only the Windows one needs updating; I have no idea where the Mac theme is
> getting its resizer graphic--could it be built into the window somehow?)

No idea, I don't even have a Mac!

> 2) Update xul:resizer.  The best way to do this, IMHO, is to add a new
> "bottomcorner" direction to resizer and have that map to either "bottomright"
> or "bottomleft" in nsResizerFrame::EvalDirection depending on the frame
> direction.

Hmm, there's no such thing as a XUL resizer per se.  This is all there is to it: <http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/toolkit/themes/winstripe/global/global.css&rev=1.13&mark=163-166#163>  I agree that bottomcorner is much better than bottomright, though.

> 3) Update the consumers of xul:resizer.  Change all uses of bottomright to
> bottomcorner (if that's the approach taken in step 2) and also add a chromedir
> to it (so that the CSS can determine whether to assign it a se cursor or a sw
> cursor).

Agreed.
I finally got around to compiling and testing my patch to cover 1&2 from comment 8, and I've posted it to bug 240536 comment 7.  Let's continue the discussion there.  :)  Anyway, off to grab dinner...
Blocks: 436587
(In reply to comment #3)
> I wonder if using visibility: hidden would be better, as that would leave the
> space around.

FWIW, we implemented this solution for fa:

<http://bonsai-l10n.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&file=intl.css&branch=&root=/l10n&subdir=l10n/fa/toolkit/chrome/global&command=DIFF_FRAMESET&rev1=1.4&rev2=1.5>
Flags: wanted1.9.0.x?
If this bug affects all rtl locales and the fix won't be specific to them, should this be moved to the Firefox product?
(In reply to comment #15)
> If this bug affects all rtl locales and the fix won't be specific to them,
> should this be moved to the Firefox product?
> 

The permanent solution (make the gripper work) will take place entirely in another bug and will require no action of any sort from l10n.  The workaround solution for 3.0.x is what this bug is mostly about, and this workaround (which does not affect the permanent solution) involves modifying a CSS file in l10n/, so it's not appropriate to move this to Firefox, though it would be appropriate to clone this bug for ar...
Ah, alright. I'm taking this off the wanted list then. If a workaround patch is made for l10n, it just needs to get approval before landing but doesn't need to be part of any wanted or blocking lists.
Flags: wanted1.9.0.x?
Cloned for ar (bug 451052).  It's already fixed in fa.
Cant the fix from the Arabic version be ported to the Hebrew version?
(In reply to comment #19)
> Cant the fix from the Arabic version be ported to the Hebrew version?

Now that bug 240536 is fixed, this workaround is actually not needed at all, as the resizer widget now supports RTL mode properly.  I guess this is WORKSFORME now.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: