Bug 630642 - Port |Bug 627146 - Bookmark panel doesn't open in the correct direction in rtl| to SeaMonkey; (Av1a) Just copy it.
authorSerge Gautherie <sgautherie.bz@free.fr>
Wed, 09 Feb 2011 16:47:32 +0100
changeset 7112 bf0f1225fa342dcd7a0f501feb689a253c24455e
parent 7111 5dfe22893e47b64072eac685e63fe52c10d53f77
child 7115 eb1b068abaa3e220ed4684bff6715b6aa27519d3
push idunknown
push userunknown
push dateunknown
bugs630642, 627146
Bug 630642 - Port |Bug 627146 - Bookmark panel doesn't open in the correct direction in rtl| to SeaMonkey; (Av1a) Just copy it. r=neil.
suite/common/bookmarks/browser-places.js
--- a/suite/common/bookmarks/browser-places.js
+++ b/suite/common/bookmarks/browser-places.js
@@ -330,22 +330,18 @@ var PlacesCommandHook = {
       itemId = PlacesUtils.getMostRecentBookmarkForURI(uri);
     }
 
     // dock the panel to the star icon when possible, otherwise dock
     // it to the content area
     if (aBrowser.contentWindow == window.content) {
       let ubIcons = aBrowser.ownerDocument.getElementById("urlbar-icons");
       if (ubIcons) {
-        // Make sure the bookmark properties dialog hangs toward the middle of
-        // the location bar in RTL builds
-        let position = (getComputedStyle(gNavToolbox, "").direction == "rtl") ?
-          'bottomcenter topleft' : 'bottomcenter topright';
         if (aShowEditUI)
-          StarUI.showEditBookmarkPopup(itemId, ubIcons, position);
+          StarUI.showEditBookmarkPopup(itemId, ubIcons, "bottomcenter topright");
         return;
       }
     }
 
     StarUI.showEditBookmarkPopup(itemId, aBrowser, "overlap");
   },
 
   /**