-
18 Oct 2011 5:18 PM #1
Answered: Ext.form.Panel is not visible
Answered: Ext.form.Panel is not visible
The following code shows the foo and bar panel but the Ext.form.Panel sandwiched between the two is not visible. Any ideas?
Code:Ext.application({ name: 'Sencha', launch: function() { Ext.create("Ext.Panel", { fullscreen: true, layout: 'vbox', items: [ Ext.create('Ext.Panel', { html: 'foo' }), Ext.create('Ext.form.Panel', { items: [{ name : 'username', label: 'Username', xtype: 'textfield' }, { name : 'password', label: 'Password', xtype: 'passwordfield' }] }), Ext.create('Ext.Panel', { html: 'bar' }), ] }); } });
-
Best Answer Posted by TommyMaintz
That is probably because the form panel is scrollable, and scrollable items can't have auto-height. Try setting scrollable: false on your form panel. You could also just give your form panel a flex of 1.
-
18 Oct 2011 5:40 PM #2
Flex is required?
Flex is required?
If I set flex to 1 for all items then it is rendered. In S1 though it use to render and the height of each item was the height of the content. What is confusing is it does it for Panel but not form.Panel.
-
19 Oct 2011 7:34 AM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Haarlem, Netherlands
- Posts
- 1,235
- Vote Rating
- 4
- Answers
- 28
That is probably because the form panel is scrollable, and scrollable items can't have auto-height. Try setting scrollable: false on your form panel. You could also just give your form panel a flex of 1.
-
19 Oct 2011 7:36 AM #4


Reply With Quote
