From c9bbdec039202d6b3d38f3169574b92baad9cad0 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 31 Oct 2013 13:46:51 +0100 Subject: [PATCH] Ox.FormPanel: add listSize option --- source/Ox.UI/js/Form/FormPanel.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/Ox.UI/js/Form/FormPanel.js b/source/Ox.UI/js/Form/FormPanel.js index 4cf5c331..76c29b12 100644 --- a/source/Ox.UI/js/Form/FormPanel.js +++ b/source/Ox.UI/js/Form/FormPanel.js @@ -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