Closed Bug 979232 Opened 11 years ago Closed 11 years ago

Bookmarking animation goes the wrong way in RTL mode

Categories

(Firefox :: Theme, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 30
Tracking Status
firefox29 --- verified
firefox30 --- verified

People

(Reporter: Gijs, Assigned: Gijs)

References

(Blocks 1 open bug)

Details

(Keywords: rtl, Whiteboard: [Australis:P3])

Attachments

(1 file)

What it says in the summary. It looks a bit silly, having the star move from the menu dropmarker to the star...
Whiteboard: [Australis:P3]
Blocks: 931343
Attachment #8385306 - Flags: review?(dao)
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Comment on attachment 8385306 [details] [diff] [review]
adjust Australis' bookmarks animation for rtl,

>+      let isRTL = getComputedStyle(this.button).direction == "rtl";
>       let buttonRect = this.button.getBoundingClientRect();
>       let notifierRect = this.notifier.getBoundingClientRect();
>       let topDiff = buttonRect.top - notifierRect.top;
>       let leftDiff = buttonRect.left - notifierRect.left;
>       let heightDiff = buttonRect.height - notifierRect.height;
>       let widthDiff = buttonRect.width - notifierRect.width;
>       let translateX = (leftDiff + .5 * widthDiff) + "px";
>       let translateY = (topDiff + .5 * heightDiff) + "px";
>-      this.notifier.style.transform = "translate(" +  translateX + ", " + translateY + ")";
>+      let desiredTransform = "translate(" +  translateX + ", " + translateY + ")";
>+      if (isRTL) {
>+        desiredTransform += " scaleX(-1)";
>+      }
>+      this.notifier.style.transform = desiredTransform;

s/desiredTransform/transform/
Attachment #8385306 - Flags: review?(dao) → review+
Whiteboard: [Australis:P3] → [Australis:P3][fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/b45d126adc15
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P3][fixed-in-fx-team] → [Australis:P3]
Target Milestone: --- → Firefox 30
Comment on attachment 8385306 [details] [diff] [review]
adjust Australis' bookmarks animation for rtl,

[Approval Request Comment]
Bug caused by (feature/regressing bug #): Australis
User impact if declined: RTL users have the bookmark animation going the wrong way (from dropmarker to star instead of vice versa)
Testing completed (on m-c, etc.): on m-c, locally
Risk to taking this patch (and alternatives if risky): very low
String or IDL/UUID changes made by this patch: none
Attachment #8385306 - Flags: approval-mozilla-aurora?
Attachment #8385306 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
QA Contact: cornel.ionce
Verified as fixed on latest Nightly (build ID: 20140313030202) and latest Aurora (build ID: 20140313004000).
Tested on Windows 7 64 bit, Ubuntu 12.04 and Mac OS X 10.9.
- verified using the "He", "Ar" and "Fa" locales
- verified by creating the string preference "intl.uidirection.en" and set it the value "rtl".
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: