Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    118
    Vote Rating
    5
    subimage is on a distinguished road

      0  

    Default 2.1.0 RC1 - using "layout: 'fit'" causes errors.

    2.1.0 RC1 - using "layout: 'fit'" causes errors.


    Specifying items with a simple "layout: 'fit'" configuration throws "
    Uncaught TypeError: Object fit has no method 'onItemAdd'
    " with the following stacktraceScreen shot 2012-10-13 at 1.53.06 PM.png

  2. #2
    Sencha User
    Join Date
    Sep 2011
    Posts
    118
    Vote Rating
    5
    subimage is on a distinguished road

      0  

    Default


    Example of failing view

    Code:
        items: [
          {
            xtype: 'tabpanel',
            flex: 2,
            cls: 'stretch',
            layout: { animation: false },
            tabBar: {
              layout: { 
                type: 'hbox',
                pack: 'stretch',
                align: 'stretch'
              },
              ui: 'purple'
            },
            items: [
              { 
                itemId: 'openProjectsContainer',
                title: 'Open',
                layout: 'fit',
                items: [
                  {
                    xtype: 'extendedlist',
                    plugins: [{
                      xclass: 'Ext.plugin.PullRefresh'
                    }],
                    store: null, // set in controller
                    itemTpl: '{name}',
                    loadingText: 'Loading Projects',
                    grouped: true
                  }
                ]
              },
              { 
                itemId: 'archivedProjectsContainer',
                title: 'Archived',
                layout: 'fit',
                items: [
                  {
                    xtype: 'extendedlist',
                    plugins: [{
                      xclass: 'Ext.plugin.PullRefresh'
                    }],
                    store: null, // set in controller
                    itemTpl: '{name}',
                    loadingText: 'Loading Projects',
                    grouped: true
                  }
                ]
              }
            ]
          }
        ]

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,519
    Vote Rating
    813
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This test is working for me in RC1 and RC2:

    Code:
    Ext.Viewport.add({
        layout : 'fit',
        items  : {
            xtype : 'tabpanel',
            items : [
                {
                    title  : 'Open',
                    layout : 'fit',
                    items  : [
                        {
                            html : 'Hello'
                        }
                    ]
                }
            ]
        }
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #4
    Sencha User
    Join Date
    Sep 2011
    Posts
    118
    Vote Rating
    5
    subimage is on a distinguished road

      1  

    Default


    You're right Mitchell. Turns out I had a 'layout: fit' outside of a config block in a view class - which was causing the error. There was no warning of deprecation just that error.

    Hopefully this helps someone else.

  5. #5
    Sencha User
    Join Date
    Nov 2012
    Posts
    9
    Vote Rating
    2
    bobspryn is on a distinguished road

      0  

    Default


    This helped me. Thank you.

Thread Participants: 2