Ox.FormPanel: add listSize option

This commit is contained in:
rolux 2013-10-31 13:46:51 +01:00
parent 92566171e8
commit c9bbdec039

View file

@ -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