Results 1 to 2 of 2

Thread: Ext.List doesn't show / fit 100% height

  1. #1
    Sencha User
    Join Date
    May 2017
    Posts
    39
    Answers
    9

    Default Answered: Ext.List doesn't show / fit 100% height

    My Ext.List doesn't show/fit 100% height. Any ideia how to solve it? I browse the docs and sencha forum but nothing found.

    Code:
    Ext.define('App.view.Test', {
      extend: 'Ext.Container',
    
    
      xtype: 'xxx',
    
    
      requires: [
        'Ext.dataview.List',
      ],
    
    
      initialize:function(){
        this.callParent()
      },
    
    
      config: {
        scrollable: true,
        layout:'fit',
        cls: Ext.baseCSSPrefix + 'profile-container',
        items:[
          {
            xtype:'container',
            layout:'fit',
            items:[{
              xtype: 'label',
              html:'label'
            }]
          },
    
    
          {
            xtype:'container',
            layout:'fit',
            items:[{
              scrollable:false,
              xtype:'list',
              id:'xxxx1',
              itemTpl: '{name}',
              style:'font-size:18px;',
              data:[{
                name:'@username',
              },{
                name:'email',
              },{
                name:'name',
              },{
                name:'aboutme'
              }]          
            }]
          }
        ]
      }
    });

  2. Fixed by dinamically setting fixed height on initialize function.

  3. #2
    Sencha User
    Join Date
    May 2017
    Posts
    39
    Answers
    9

    Default

    Fixed by dinamically setting fixed height on initialize function.

Similar Threads

  1. Replies: 2
    Last Post: 14 Nov 2012, 3:53 PM
  2. Explain how to a scrollable List use dynamic height without fixed height
    By hanguokai in forum Sencha Touch 2.x: Discussion
    Replies: 5
    Last Post: 19 Jul 2012, 12:53 PM
  3. Panels height doesn adjust its height dynamically
    By german.larrosa in forum Ext: Q&A
    Replies: 2
    Last Post: 23 Jun 2012, 11:02 PM
  4. [CLOSED] List height is 0px if a height is not specified (should stretch to fill)
    By Marc-QNX in forum Sencha Touch 2.x: Bugs
    Replies: 2
    Last Post: 13 Feb 2012, 6:44 AM
  5. [OPEN-638] "Fullscreen" list height doesn't compensate for toolbar
    By eric2008 in forum Sencha Touch 1.x: Bugs
    Replies: 1
    Last Post: 29 Jun 2011, 8:11 AM

Tags for this Thread

Posting Permissions

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