Bug 1439834 - Stretch #titlebar over dragspace, r=dao
authorMartin Stransky <stransky@redhat.com>
Wed, 07 Mar 2018 10:58:17 +0100
changeset 407931 422c2b84ac8cdba7d003f82dd477e6727f8c35af
parent 407930 759df5effae385509afc3ba9ebe964553cea1e88
child 407932 f36db4aef5c3ad17ab75687dfcd529996ef25e0a
push id33623
push userrgurzau@mozilla.com
push dateTue, 13 Mar 2018 22:39:30 +0000
treeherdermozilla-central@1bd1d50b1f3f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1439834
milestone61.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 1439834 - Stretch #titlebar over dragspace, r=dao Add missing drag space height (present as #TabsToolbar padding) to titlebar height computation. MozReview-Commit-ID: 8JhP2zuNexb
browser/themes/linux/browser.css
--- a/browser/themes/linux/browser.css
+++ b/browser/themes/linux/browser.css
@@ -655,25 +655,25 @@ notification[value="translation"] menuli
   }
   :root[tabsintitlebar][sizemode="maximized"] > #titlebar {
     -moz-appearance: -moz-window-titlebar-maximized;
   }
 
   /* Add extra space to titlebar for dragging */
   :root[sizemode="normal"][chromehidden~="menubar"] #TabsToolbar,
   :root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar {
-    margin-top: var(--space-above-tabbar);
+    padding-top: var(--space-above-tabbar);
   }
 
   /* Private browsing and accessibility indicators */
   :root[sizemode="normal"][chromehidden~="menubar"] #TabsToolbar > .private-browsing-indicator,
   :root[sizemode="normal"][chromehidden~="menubar"] #TabsToolbar > .accessibility-indicator,
   :root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar > .private-browsing-indicator,
   :root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar > .accessibility-indicator {
-    margin-top: calc(-1 * var(--space-above-tabbar));
+    padding-top: calc(-1 * var(--space-above-tabbar));
   }
 
   /* The button box must appear on top of the navigator-toolbox in order for
    * click and hover mouse events to work properly for the button in the restored
    * window state. Otherwise, elements in the navigator-toolbox, like the menubar,
    * can swallow those events.
    */
   #titlebar-buttonbox {