Results 1 to 5 of 5

Thread: List not displaying without a fixed height

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    19
    Vote Rating
    0
      0  

    Default List not displaying without a fixed height

    Hi all,
    I create a list in sencha and it's only displayed when i set it's height otherwise it doesn't get displayed...
    Below is my code :
    {
    xtype: 'list',
    height: 800, //height specified
    id: 'noteslist',
    itemTpl: '{note_text}',
    store: 'Notes'
    }
    but when i don't specify height or set it 100% list is not displayed...

    Please help me to get this solved...

  2. #2
    Sencha User
    Join Date
    Nov 2011
    Location
    England
    Posts
    136
    Answers
    11
    Vote Rating
    7
      0  

    Default

    Applying
    Code:
    layout: 'fit'
    to the list should solve that

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    19
    Vote Rating
    0
      0  

    Default

    Hey George,
    I set layouy: 'fit' but it still doesn't show the list...

  4. #4
    Sencha User
    Join Date
    Feb 2011
    Location
    Dsseldorf, Germany
    Posts
    594
    Answers
    35
    Vote Rating
    33
      0  

    Default

    what is the layout of the parent element.
    Can you check in chrome if the parent element covers the full screen?

  5. #5
    Sencha User
    Join Date
    Nov 2011
    Location
    England
    Posts
    136
    Answers
    11
    Vote Rating
    7
      0  

    Default

    Quote Originally Posted by Andy Lincoln View Post
    Hey George,
    I set layouy: 'fit' but it still doesn't show the list...
    Could you post your view code please?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •