1. #1
    Sencha User
    Join Date
    Sep 2008
    Posts
    24
    Vote Rating
    0
    jimmy6 is on a distinguished road

      0  

    Default Unanswered: Panel's content missing after add scroll:'vertical'

    Unanswered: Panel's content missing after add scroll:'vertical'


    I am using Carousel and containing panel. Panel's content missing after add scroll:'vertical' to panel. How to solve that?

    Code:
      xtype: 'carousel',
                         title: 'test',
                         scrollable: {
                        	    direction: 'horizontal'
                         },....
    
    
     xtype:'panel',
     		   scrollable: {
      	    			    direction: 'vertical'
    	 	    			},

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,074
    Answers
    3501
    Vote Rating
    854
    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


    I'm seeing my HTML with scrollable set:

    Code:
    new Ext.carousel.Carousel({
        fullscreen : true,
        items      : [
            {
                xtype      : 'panel',
                html       : 'Hello',
                scrollable : {
                    direction : 'vertical'
                }
            },
            {
                xtype      : 'panel',
                html       : 'Hi',
                scrollable : {
                    direction : 'vertical'
                }
            }
        ]
    });
    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.

  3. #3
    Sencha User
    Join Date
    Sep 2008
    Posts
    24
    Vote Rating
    0
    jimmy6 is on a distinguished road

      0  

    Default


    I think it is a bug. Same problem with you code as well. Can you send me your sencha-touch-all.js. I did try other version of js. It work with your sample but cause my other datastore not working.
    Code:
    Ext.application({
        name: 'testing',
        
        launch: function() {
            new Ext.carousel.Carousel({
                fullscreen : true,
                items      : [
                    {
                        xtype      : 'panel',
                        html       : 'Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>Hello<br/>123',
                        scrollable : {
                            direction : 'vertical'
                        }
                    },
                    {
                        xtype      : 'panel',
                        html       : 'Hi',
                        scrollable : {
                            direction : 'vertical'
                        }
                    }
                ]
            });
    }
    });

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,074
    Answers
    3501
    Vote Rating
    854
    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


    Used 2.0.0-gpl
    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.

  5. #5
    Sencha User
    Join Date
    Sep 2008
    Posts
    24
    Vote Rating
    0
    jimmy6 is on a distinguished road

      0  

    Default


    Yes 2.0 able to work for your sample but cause me error. Wondering how to loop the data out properly?
    Uncaught TypeError: Cannot read property 'length' of undefined

    Code:
    newsStore.load({
       	    callback: function(records, operation, success) {
    
    
       	    	   for(i = 0;i< newsStore.data.all.length; i++){

  6. #6
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,074
    Answers
    3501
    Vote Rating
    854
    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


    Code:
    newsStore.getData().items.length
    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.

  7. #7
    Sencha User
    Join Date
    Sep 2008
    Posts
    24
    Vote Rating
    0
    jimmy6 is on a distinguished road

      0  

    Default


    .getData error. no such method.

    The show listener does not work anymore.
    xtype: 'tabpanel',
    listeners: {
    show: function( t, eOpts ){

  8. #8
    Sencha User
    Join Date
    Sep 2008
    Posts
    24
    Vote Rating
    0
    jimmy6 is on a distinguished road

      0  

    Default


    Where is my Helper???
    The getData method really does not exist.

  9. #9
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,074
    Answers
    3501
    Vote Rating
    854
    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


    are you sure that is your store?
    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.

Thread Participants: 1