projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2563d0b
)
Roo/bootstrap/Element.js
author
Edward
<edward@roojs.com>
Mon, 28 Apr 2014 10:14:36 +0000
(18:14 +0800)
committer
Edward
<edward@roojs.com>
Mon, 28 Apr 2014 10:14:36 +0000
(18:14 +0800)
Roo/bootstrap/Element.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Element.js
b/Roo/bootstrap/Element.js
index
1d4ed1b
..
46cbfef
100644
(file)
--- a/
Roo/bootstrap/Element.js
+++ b/
Roo/bootstrap/Element.js
@@
-40,6
+40,18
@@
Roo.extend(Roo.bootstrap.Element, Roo.bootstrap.Component, {
return cfg;
+ },
+
+ adjustWidth : function(width){
+ if(typeof width == "number"){
+ if(this.autoBoxAdjust && !this.isBorderBox()){
+ width -= (this.getBorderWidth("lr") + this.getPadding("lr"));
+ }
+ if(width < 0){
+ width = 0;
+ }
+ }
+ return width;
}
});