Merge branch 'master' into development
* master: safer while use locally, no need of ribbon
Dieser Commit ist enthalten in:
Commit
9785ea25a7
@ -108,10 +108,12 @@ $(function () {
|
||||
function onResize() {
|
||||
//Fix GitHub Ribbon overlapping Scrollbar
|
||||
var a = $('article');
|
||||
if (ribbon[0] && a[0] && a[0].scrollHeight > $('.right-column').height()) {
|
||||
ribbon[0].style.right = '16px';
|
||||
} else {
|
||||
ribbon[0].style.right = '';
|
||||
if (ribbon.length && a.length) {
|
||||
if (a[0] && a[0].scrollHeight > $('.right-column').height()) {
|
||||
ribbon[0].style.right = '16px';
|
||||
} else {
|
||||
ribbon[0].style.right = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
$(window).resize(_.debounce(onResize, 100));
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren