Fix some fallout from background-size addition

Commit 25948f214e replaced the old hardcoded scaling behavior of
background-images with the CSS-compliant option to control that
behavior with the background-size property. Fix some fallout from
the changed default scaling behavior.
This commit is contained in:
Florian Müllner
2012-01-10 01:48:14 +01:00
parent 417cbea79c
commit 41f6956197
3 changed files with 6 additions and 3 deletions

View File

@ -333,7 +333,8 @@ const EndSessionDialog = new Lang.Class({
this._iconBin.child = null;
if (iconFile) {
this._iconBin.show();
this._iconBin.set_style('background-image: url("' + iconFile + '");');
this._iconBin.set_style('background-image: url("' + iconFile + '");' +
'background-size: contain;');
} else {
this._iconBin.hide();
}