Bug 1470947 - Part 5: Remove block padding from scrollbars in all tabs menu r?dao
MozReview-Commit-ID: 32Uc6h4PSUu
--- a/browser/themes/shared/customizableui/panelUI.inc.css
+++ b/browser/themes/shared/customizableui/panelUI.inc.css
@@ -178,16 +178,26 @@ panelview {
.panel-subview-body {
overflow-y: auto;
overflow-x: hidden;
-moz-box-flex: 1;
padding: 6px 0;
}
+.panel-subview-body > .panel-subview-body {
+ /* Nesting .panel-subview-body will allow the inner one to scroll,
+ * however it will have too much top/bottom padding causing the
+ * scrollbars to be inset. Remove the padding with negative
+ * margin so we stay at 6px padding and the scroll bars reach
+ * right to the top/bottom.
+ */
+ margin: -6px 0;
+}
+
.panel-view-body-unscrollable {
overflow: hidden;
-moz-box-flex: 1;
}
.subviewbutton.panel-subview-footer {
box-sizing: border-box;
min-height: 41px;