-
25 Jun 2010 11:36 AM #1
[FIXED-108] Carousel with Ext.form.FormPanel and Ext.form.Select on 2+ page behaviour
[FIXED-108] Carousel with Ext.form.FormPanel and Ext.form.Select on 2+ page behaviour
Hi there,
I experience a bad behaviour with using a select box on the second page in a Carousel. It will always try to reswitch to "the first" / another page.
Short Example:
Code:Ext.setup({ onReady: function() { var panelFrm = new Ext.form.FormPanel({ layout: 'card', html: '<h1>page 2</h1>', items: [{ xtype: 'select', name : 'itm', label: 'select itm', options: [ {text: 'item 1', value: '1'}, {text: 'item 2', value: '2'} ] }] }); var carousel = new Ext.Carousel({ defaults: { cls: 'card' }, items: [{ html: '<h1>page 1</h1>' }, panelFrm] }); new Ext.Panel({ fullscreen: true, layout: { type: 'vbox', align: 'stretch' }, defaults: { flex: 1 }, items: [carousel] }); } });Last edited by Benjamin Ansbach; 25 Jun 2010 at 11:42 AM. Reason: better expl.
-
25 Jun 2010 12:17 PM #2
-
25 Jun 2010 4:30 PM #3
Thanks for the report
-
28 Jun 2010 2:21 PM #4Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Haarlem, Netherlands
- Posts
- 1,235
- Vote Rating
- 4
This issue will be fixed in the next release.
I would like to give you some quick suggestions.
In your fullscreen panel you seem to try and achieve the carousel to be full with and height of the panel. You can easily achieve this by using a layout: 'fit' instead of using a vbox and setting flex. In the next release Carousel will extend Panel meaning that you could even skip the whole wrapping panel and just make the carousel fullscreen: true.
Also you seem to be using html and items at the same time on your FormPanel. Although this does work, you have to manage the positioning of the html yourself. A better option would be to add an xtype: 'component' as a child of the FormPanel and use the html configuration option on that component. That way you can let the framework lay out the component with html and your form items.
I see you are using layout 'card' on your FormPanel. A CardLayout will make it so that only one item is visible at a time in the container. In your example you will probably want to use something like 'vbox' or even no layout at all.
Finally I think it would be useful to put the form items inside a FieldSet so that they get better styling.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
loading Ext.form.ComboBox displayField and valueField by Ext.form.FormPanel load
By ali.bakan in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 29 Apr 2010, 6:00 AM -
Problem with select field in Ext.form.ComboBox in Ext.form.FormPanel
By philiparad in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 9 Feb 2010, 11:03 PM -
[FIXED-322]Ext.form.HtmlEditor:insertAtCursor() behaviour, IE vs Firefox
By sacha in forum Ext 3.x: BugsReplies: 1Last Post: 27 Oct 2009, 6:27 PM -
[FIXED][3.0] Ext.Select change in behaviour?
By robw in forum Ext 2.x: BugsReplies: 8Last Post: 18 Apr 2009, 5:09 AM -
[FIXED][3.0] Ext.Select change in behaviour?
By robw in forum Ext 3.x: BugsReplies: 8Last Post: 18 Apr 2009, 5:09 AM


Reply With Quote

