1. #1
    Sencha User
    Join Date
    Jan 2011
    Location
    openthesky7(at)gmail.com
    Posts
    54
    Vote Rating
    1
    openthesky7 is on a distinguished road

      0  

    Default Fixed height of panel in TabPanel - how to turn on scrolling?

    Fixed height of panel in TabPanel - how to turn on scrolling?


    Hello,

    I have a problem with this piece of code:


    Ext.setup({
    icon: 'icon.png',
    tabletStartupScreen: 'tablet_startup.jpg',
    phoneStartupScreen: 'phone_startup.jpg',
    glossOnIcon: false,

    onReady: function() {

    new Ext.TabPanel({
    fullscreen: true,
    scroll: 'vertical',

    items: [
    {
    title: 'test', html: 'test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>END<br/>',
    },
    ]

    });

    }


    })

    If root panel is Ext.Panel not Ext.TabPanel, I can see all text lines and scrolling works. When I changed panel to Ext.TabPanel, height of the panel is fixed (equals height of screen), and there is no end of text. Who to fixed this problem?

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Location
    openthesky7(at)gmail.com
    Posts
    54
    Vote Rating
    1
    openthesky7 is on a distinguished road

      0  

    Default


    Ok... I have it:

    items: [
    {
    scroll: 'vertical',
    title: 'test', html: 'test...',
    },
    ]

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Vote Rating
    846
    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


    Great job figuring it out. One tip tho, if you post code, please wrap it in the CODE BBCode tags. You can highlight your code and then hit the # button in the toolbar.
    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
    Jan 2011
    Location
    openthesky7(at)gmail.com
    Posts
    54
    Vote Rating
    1
    openthesky7 is on a distinguished road

      0  

    Default


    Ok. No problem.

  5. #5
    Sencha User
    Join Date
    May 2008
    Location
    Hyderabad, India
    Posts
    8
    Vote Rating
    0
    ashokvilvanathan is on a distinguished road

      0  

    Default


    PHP Code:
    items: [{scroll'vertical',title'test'html'test...',},] 

Similar Threads

  1. Scrolling list without fixed height?
    By aCa in forum Sencha Touch 1.x: Discussion
    Replies: 19
    Last Post: 15 Apr 2012, 12:29 PM
  2. Replies: 2
    Last Post: 9 Dec 2009, 8:24 AM
  3. Adding too many panel to a Scrolling Tabpanel. The scrolling icon disappear
    By tomchen1000 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 20 Mar 2008, 4:26 AM
  4. Layout within a TabPanel, fixed Panel height in AnchorLayout
    By rand4445 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 6 Dec 2007, 8:12 AM

Thread Participants: 2