From 594b92063aca043c1973f13c681614581209ef89 Mon Sep 17 00:00:00 2001 From: David Alexander Date: Wed, 10 Aug 2016 11:31:12 +1200 Subject: [PATCH] FIX horizontal alignment shifts when vertical scroll bar appears Common problem. Quite visible if (i) a page's content fits within the browser window's height when the table of contents dropdown is closed but (ii) the content no longer fits vertically when the table of contents dropdown is opened. When this happens, a vertical scroll bar appears in the browser and the page's horizontal alignment shifts by the scroll bar width. @frankmullenger I also noticed this in swipestripe docs :) --- css/layout.css | 1 + 1 file changed, 1 insertion(+) diff --git a/css/layout.css b/css/layout.css index da7ee3c..bb7d588 100644 --- a/css/layout.css +++ b/css/layout.css @@ -5,6 +5,7 @@ html { padding-bottom: 40px; -webkit-font-smoothing: antialiased; box-sizing: border-box; + overflow-y: scroll; } *, *:before, *:after {