safer
This commit is contained in:
parent
fcbc6d84fb
commit
d52c377d21
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user