roojs-bootstrap.js
[roojs1] / Roo / bootstrap / Card.js
index 24829c5..d9527e0 100644 (file)
@@ -763,6 +763,7 @@ 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 );
         if (hw > 1) {
             Roo.get(he).setSize( ww * (1/hw),  ww);
             Roo.get(he).setX( (ww - (ww * (1/hw)))/ 2);