projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9882eb7
)
Roo/bootstrap/Card.js
author
Alan Knowles
<alan@roojs.com>
Wed, 31 Mar 2021 09:53:24 +0000
(17:53 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 31 Mar 2021 09:53:24 +0000
(17:53 +0800)
Roo/bootstrap/Card.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Card.js
b/Roo/bootstrap/Card.js
index
016e5a7
..
60eaa03
100644
(file)
--- 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';
}
}