projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa20252
)
Roo/bootstrap/Card.js
author
Alan Knowles
<alan@roojs.com>
Wed, 31 Mar 2021 09:51:10 +0000
(17:51 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 31 Mar 2021 09:51:10 +0000
(17:51 +0800)
Roo/bootstrap/Card.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Card.js
b/Roo/bootstrap/Card.js
index
d9527e0
..
016e5a7
100644
(file)
--- a/
Roo/bootstrap/Card.js
+++ b/
Roo/bootstrap/Card.js
@@
-765,8
+765,9
@@
Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, {
var ww = he.width;
Roo.get(he).setX( 0 );
if (hw > 1) {
+ var nw = (ww * (1/hw));
Roo.get(he).setSize( ww * (1/hw), ww);
- Roo.get(he).setX( (ww -
(ww * (1/hw))
)/ 2);
+ Roo.get(he).setX( (ww -
nw
)/ 2);
}
}