Bug 652259 - [RTL] Arrow is on the wrong side when opening a new tab [r=vingtetun]
authorAnas Husseini <linux.anas@gmail.com>
Mon, 09 May 2011 13:28:48 +0200
changeset 69134 664382a1d450a7703c416725c3af256615013eb8
parent 69133 dfcfa00eb188b14330b3d2fbbcd8485a7e3eaa6a
child 69135 3ab07933020e68961da5901fd2216fafbacce605
push id19875
push uservnicolas@mozilla.com
push dateMon, 09 May 2011 11:29:07 +0000
treeherdermozilla-central@b2ce3817d034 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvingtetun
bugs652259
milestone6.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 652259 - [RTL] Arrow is on the wrong side when opening a new tab [r=vingtetun]
mobile/chrome/content/bindings/arrowbox.xml
--- a/mobile/chrome/content/bindings/arrowbox.xml
+++ b/mobile/chrome/content/bindings/arrowbox.xml
@@ -123,32 +123,32 @@
               if (horizPos == 0) {
                 container.orient = "vertical";
                 arrowbox.orient = "";
                 if (vertPos == 0) {
                   hideArrow = true;
                 } else {
                   arrowbox.style.marginLeft = ((anchorRect.left - popupRect.left) + (anchorRect.width / 2) - HALF_ARROW_WIDTH) + "px";
                   if (vertPos == 1) {
-                    container.dir = "ltr"; 
+                    container.dir = "normal"; 
                     anchorClass = "top";
                   } else if (vertPos == -1) {
                     container.dir = "reverse"; 
                     anchorClass = "bottom";
                   }
                 }
               } else if (vertPos == 0) {
                 container.orient = "";
                 arrowbox.orient = "vertical";
                 arrowbox.style.marginTop = ((anchorRect.top - popupRect.top) + (anchorRect.height / 2) - HALF_ARROW_WIDTH) + "px";
                 if (horizPos == 1) {
                   container.dir = "ltr"; 
                   anchorClass = "left";
                 } else if (horizPos == -1) {
-                  container.dir = "reverse";
+                  container.dir = "rtl";
                   anchorClass = "right";
                 }
               } else {
                 hideArrow = true;
               }
               arrow.hidden = hideArrow;
               arrow.setAttribute("side", anchorClass);
             ]]>