Bug 1411309 - Remove margin next to chrome controls and drag space. r?johannh draft
authorDale Harvey <dale@arandomurl.com>
Mon, 06 Nov 2017 14:09:48 +0000
changeset 693567 cda46edd2210bab5f7ede1813164365be4b0a3da
parent 693557 8bd4bc79710009063117fa940d892704a3411cb0
child 739081 f7fa02d4fc27cc31e4aa2a78ce7111ce4fd1cdff
push id87857
push userbmo:dharvey@mozilla.com
push dateMon, 06 Nov 2017 14:38:09 +0000
reviewersjohannh
bugs1411309
milestone58.0a1
Bug 1411309 - Remove margin next to chrome controls and drag space. r?johannh MozReview-Commit-ID: 91JCjkW7mNJ
browser/base/content/browser-tabsintitlebar.js
--- a/browser/base/content/browser-tabsintitlebar.js
+++ b/browser/base/content/browser-tabsintitlebar.js
@@ -163,17 +163,17 @@ var TabsInTitlebar = {
 
       // Try to avoid reflows in this code by calculating dimensions first and
       // then later set the properties affecting layout together in a batch.
 
       // Get the height of the tabs toolbar:
       let fullTabsHeight = rect($("TabsToolbar")).height;
 
       // Buttons first:
-      let captionButtonsBoxWidth = rect($("titlebar-buttonbox-container")).width;
+      let captionButtonsBoxWidth = rect($("titlebar-buttonbox")).width;
 
       let secondaryButtonsWidth, menuHeight, fullMenuHeight, menuStyles;
       if (AppConstants.platform == "macosx") {
         secondaryButtonsWidth = rect($("titlebar-secondary-buttonbox")).width;
         // No need to look up the menubar stuff on OS X:
         menuHeight = 0;
         fullMenuHeight = 0;
       } else {