Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 97bab8c

Browse files
committed
Use background-size: cover when possible (fix #821)
1 parent d68c891 commit 97bab8c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/src/plugins/gui.ajax/res/js/ajaxplorer.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/src/plugins/gui.ajax/res/js/ajaxplorer/class.AjxpPane.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,9 @@ Class.create("AjxpPane", {
486486
}
487487
if (bStyles.length) {
488488
i = Math.floor( Math.random() * bStyles.length);
489-
this.htmlElement.setAttribute("style", bStyles[i]);
489+
var bg = bStyles[i];
490+
if(Modernizr.backgroundsize) bg = bg.replace('background-size:100%','background-size:cover').replace('background-size:140%','background-size:cover');
491+
this.htmlElement.setAttribute("style", bg);
490492
}
491493

492494
}

0 commit comments

Comments
 (0)