From c5bd76f9743a028940438c35357f420af4f690ae Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 31 Mar 2021 17:53:24 +0800 Subject: [PATCH] Roo/bootstrap/Card.js --- Roo/bootstrap/Card.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Roo/bootstrap/Card.js b/Roo/bootstrap/Card.js index 016e5a7bd7..60eaa034dc 100644 --- a/Roo/bootstrap/Card.js +++ b/Roo/bootstrap/Card.js @@ -763,11 +763,13 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, { // tall image = > 1 //var w = he.dom.naturalWidth; var ww = he.width; - Roo.get(he).setX( 0 ); + he.style.left = 0; + he.style.position = 'relative'; if (hw > 1) { var nw = (ww * (1/hw)); Roo.get(he).setSize( ww * (1/hw), ww); - Roo.get(he).setX( (ww - nw)/ 2); + he.style.left = ((ww - nw)/ 2) + 'px'; + he.style.position = 'relative'; } } -- 2.39.2