Ox.FormPanel: add listSize option
This commit is contained in:
parent
92566171e8
commit
c9bbdec039
1 changed files with 4 additions and 5 deletions
|
@ -14,7 +14,8 @@ Ox.FormPanel = function(options, self) {
|
|||
self = self || {};
|
||||
var that = Ox.Element({}, self)
|
||||
.defaults({
|
||||
form: []
|
||||
form: [],
|
||||
listSize: 256
|
||||
})
|
||||
.options(options || {});
|
||||
|
||||
|
@ -64,7 +65,7 @@ Ox.FormPanel = function(options, self) {
|
|||
selected: [self.options.form[0].id],
|
||||
sort: [{key: 'id', operator: '+'}],
|
||||
unique: 'id',
|
||||
width: 256
|
||||
width: self.options.listSize
|
||||
}).bindEvent({
|
||||
select: function(data) {
|
||||
self.$sections[self.section].hide();
|
||||
|
@ -135,9 +136,7 @@ Ox.FormPanel = function(options, self) {
|
|||
elements: [
|
||||
{
|
||||
element: self.$list,
|
||||
resizable: true,
|
||||
resize: [256],
|
||||
size: 256
|
||||
size: self.options.listSize
|
||||
},
|
||||
{
|
||||
element: self.$section
|
||||
|
|
Loading…
Reference in a new issue