Bug 612353 - Account for the width of the app tab tray if present in RTL mode; r=ian.gilman a=gavin
--- a/browser/base/content/tabview/groupitems.js
+++ b/browser/base/content/tabview/groupitems.js
@@ -423,17 +423,21 @@ GroupItem.prototype = Utils.extend(new I
// Function: getContentBounds
// Returns a <Rect> for the groupItem's content area (which doesn't include the title, etc).
getContentBounds: function GroupItem_getContentBounds() {
var box = this.getBounds();
var titleHeight = this.$titlebar.height();
box.top += titleHeight;
box.height -= titleHeight;
- box.width -= this.$appTabTray.width();
+ var appTabTrayWidth = this.$appTabTray.width();
+ box.width -= appTabTrayWidth;
+ if (UI.rtl) {
+ box.left += appTabTrayWidth;
+ }
// Make the computed bounds' "padding" and new tab button margin actually be
// themeable --OR-- compute this from actual bounds. Bug 586546
box.inset(6, 6);
box.height -= 33; // For new tab button
return box;
},