Hybrid View

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    19
    Vote Rating
    0
    Andy Lincoln is on a distinguished road

      0  

    Default Unanswered: List not displaying without a fixed height

    Unanswered: 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
    135
    Answers
    11
    Vote Rating
    7
    george.m is on a distinguished road

      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
    Andy Lincoln is on a distinguished road

      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
    Düsseldorf, Germany
    Posts
    585
    Answers
    34
    Vote Rating
    32
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      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
    135
    Answers
    11
    Vote Rating
    7
    george.m is on a distinguished road

      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?

Thread Participants: 2