Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jun 2008
    Posts
    14
    Vote Rating
    0
    Benjamin Ansbach is on a distinguished road

      0  

    Post [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.

  2. #2
    Sencha User
    Join Date
    Jun 2008
    Posts
    14
    Vote Rating
    0
    Benjamin Ansbach is on a distinguished road

      0  

    Default


    I'm testing on an iPad device if this helps

  3. #3
    Sencha User xantus's Avatar
    Join Date
    Aug 2007
    Location
    Seattle, WA
    Posts
    135
    Vote Rating
    0
    xantus is on a distinguished road

      0  

    Default


    Thanks for the report
    Software Engineer
    http://xant.us/

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    8
    TommyMaintz will become famous soon enough

      0  

    Default


    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.

Similar Threads

  1. Replies: 2
    Last Post: 29 Apr 2010, 6:00 AM
  2. Problem with select field in Ext.form.ComboBox in Ext.form.FormPanel
    By philiparad in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 9 Feb 2010, 11:03 PM
  3. Replies: 1
    Last Post: 27 Oct 2009, 6:27 PM
  4. [FIXED][3.0] Ext.Select change in behaviour?
    By robw in forum Ext 2.x: Bugs
    Replies: 8
    Last Post: 18 Apr 2009, 5:09 AM
  5. [FIXED][3.0] Ext.Select change in behaviour?
    By robw in forum Ext 3.x: Bugs
    Replies: 8
    Last Post: 18 Apr 2009, 5:09 AM

Thread Participants: 2

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar