update ui
This commit is contained in:
parent
ec8f1d7fca
commit
94bc6a0317
|
@ -16,6 +16,7 @@ class PxImage {
|
||||||
loader.onload = function() {
|
loader.onload = function() {
|
||||||
image.style.backgroundImage = 'url(' + source + ')'
|
image.style.backgroundImage = 'url(' + source + ')'
|
||||||
image.style.backgroundSize = 'cover'
|
image.style.backgroundSize = 'cover'
|
||||||
|
image.style.backgroundPosition = 'center'
|
||||||
}
|
}
|
||||||
|
|
||||||
loader.src = source
|
loader.src = source
|
||||||
|
|
Loading…
Reference in a new issue