From 8e7494a8e993620c11b93f790828672787e07228 Mon Sep 17 00:00:00 2001 From: mattamon Date: Wed, 4 Dec 2024 08:13:29 +0100 Subject: [PATCH] Use background-size to contain content --- src/Resources/public/js/pimcore/perspective/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/public/js/pimcore/perspective/common.js b/src/Resources/public/js/pimcore/perspective/common.js index dd45c68..a015d11 100644 --- a/src/Resources/public/js/pimcore/perspective/common.js +++ b/src/Resources/public/js/pimcore/perspective/common.js @@ -121,7 +121,7 @@ pimcore.bundle.perspectiveeditor.PerspectiveViewHelper = class { margin: '10 0 0 10', listeners: { "afterrender": function (el) { - el.inputEl.applyStyles("background:url(" + el.getValue() + ") right center no-repeat;"); + el.inputEl.applyStyles("background:url(" + el.getValue() + ") right center no-repeat; background-size:contain;"); }, change: function(field, newValue) {