This commit is contained in:
geeyan 2016-01-08 18:04:35 +08:00
parent fcbc6d84fb
commit d52c377d21
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ $(function () {
function onResize() {
//Fix GitHub Ribbon overlapping Scrollbar
var a = $('article');
if (ribbon.length) {
if (ribbon.length && a.length) {
if (a[0] && a[0].scrollHeight > $('.right-column').height()) {
ribbon[0].style.right = '16px';
} else {