From 46033994013bfad69409f5d468b8460aa5e3e004 Mon Sep 17 00:00:00 2001 From: Gautham Warrier Date: Thu, 13 Feb 2014 19:10:54 +0530 Subject: [PATCH] Fix GitHub Ribbon overlapping Scrollbar. Issue #1 --- js/custom.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/custom.js b/js/custom.js index 5ffe9d4..c9be040 100644 --- a/js/custom.js +++ b/js/custom.js @@ -21,6 +21,9 @@ $(function() { }); }); +//Fix GitHub Ribbon overlapping Scrollbar +if ($('article')[0].scrollHeight > $('.right-column').height()) $('#github-ribbon')[0].style.right = '16px' + //Toggle Code Block Visibility function toggleCodeBlocks() { var t = localStorage.getItem("toggleCodeStats")