projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad704e0
)
Roo/bootstrap/Component.js
author
Edward
<edward@roojs.com>
Mon, 28 Apr 2014 10:18:14 +0000
(18:18 +0800)
committer
Edward
<edward@roojs.com>
Mon, 28 Apr 2014 10:18:14 +0000
(18:18 +0800)
Roo/bootstrap/Component.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Component.js
b/Roo/bootstrap/Component.js
index
f4c679e
..
fab254f
100644
(file)
--- a/
Roo/bootstrap/Component.js
+++ b/
Roo/bootstrap/Component.js
@@
-266,7
+266,19
@@
Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent, {
cn.items = nitems;
return cn;
- }
+ },
+
+ 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;
+ }