projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cc39c7
)
Roo/bootstrap/Modal.js
author
Edward
<edward@roojs.com>
Fri, 20 Jun 2014 05:04:56 +0000
(13:04 +0800)
committer
Edward
<edward@roojs.com>
Fri, 20 Jun 2014 05:04:56 +0000
(13:04 +0800)
Roo/bootstrap/Modal.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Modal.js
b/Roo/bootstrap/Modal.js
index
b6b6280
..
b96af2c
100644
(file)
--- a/
Roo/bootstrap/Modal.js
+++ b/
Roo/bootstrap/Modal.js
@@
-57,6
+57,8
@@
Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, {
buttons : false,
+ width : false,
+
onRender : function(ct, position)
{
Roo.bootstrap.Component.superclass.onRender.call(this, ct, position);
@@
-132,7
+134,7
@@
Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, {
};
-
return
modal = {
+
var
modal = {
cls: "modal fade",
cn : [
{
@@
-173,6
+175,12
@@
Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, {
};
+
+ if(this.width){
+ modal.cn[0].style = 'width:' + this.width + 'px';
+ }
+
+ return modal;
},
getChildContainer : function() {