safer
This commit is contained in:
parent
fcbc6d84fb
commit
d52c377d21
@ -108,7 +108,7 @@ $(function () {
|
|||||||
function onResize() {
|
function onResize() {
|
||||||
//Fix GitHub Ribbon overlapping Scrollbar
|
//Fix GitHub Ribbon overlapping Scrollbar
|
||||||
var a = $('article');
|
var a = $('article');
|
||||||
if (ribbon.length) {
|
if (ribbon.length && a.length) {
|
||||||
if (a[0] && a[0].scrollHeight > $('.right-column').height()) {
|
if (a[0] && a[0].scrollHeight > $('.right-column').height()) {
|
||||||
ribbon[0].style.right = '16px';
|
ribbon[0].style.right = '16px';
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user