PDA

View Full Version : fieldSet collapsing problem...



Mandakh
12 Apr 2012, 7:51 PM
Hi
I'm developing application with fieldSet which should be collapsed. But I got a problem about showing all controls which is in fieldSet. I got 8 controls including textfield, combobox etc. But I can see only first 2 controls when my fieldset is not collapsed. And my fieldSet layout is absolute. How can I see all my controls when fieldSet's layout is absolute. I put some of my code below

items: [
{
xtype: 'fieldset',
layout: {
type: 'absolute'
},
collapsible: true,
title: 'Main',
items: [
{
xtype: 'hiddenfield',
name: '_ModelStatus',
value: 'N'
},
{
xtype: 'textfield',
name: 'ItemName',
dataIndex: 'ItemName',
fieldLabel: 'Барааны нэр',
labelWidth: 180,
x:0,
y:0
},
{
xtype: 'combobox',
fieldLabel: 'Барааны хэлбэр',
dataIndex:'ItemType',
labelWidth: 180,
x: 0,
y: 40
},
{
xtype: 'basebrowse',
fieldLabel: 'Барааны ангилал',
dataIndex:'ItemCategory',
labelWidth: 180,
width: 353,
x: 0,
y: 80
},
{
xtype: 'textfield',
padding: '',
fieldLabel: 'Жишиг үнэ/суурь валют/',
labelWidth: 180,
x: 430,
y: 40
},


hope this sample code is enough to see the problem

thank you

mitchellsimoens
13 Apr 2012, 7:55 AM
Using absolute layout amd having your items specified to particular x/y coords, the fieldset's size will no be auto heighted, it will always have a zero height.