Hybrid View

  1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    1
    Vote Rating
    0
    Pink und Adel is on a distinguished road

      0  

    Default Unanswered: Sencha Touch nested formpanel height issue

    Unanswered: Sencha Touch nested formpanel height issue


    While building a view I tried to nest a formpanel followed by a panel in a panel.
    So basically there is a nested structure like this:
    Ext.Panel
    --Ext.form.Panel
    --Ext.Panel

    The problem is, that the formpanel has no height. It would be nice if the formpanel would get the height it needs. Like height: auto in CSS.
    Any ideas?

    The code is the following:

    Ext.define('MyApp.view.MyView', {
    extend: 'Ext.Panel',
    xtype: 'myview',
    config : {
    scrollable: true,
    items : [
    {
    xtype: 'formpanel',
    items: [
    {
    html: 'Content in formpanel'
    }
    ]
    },
    {
    xtype: 'panel',
    items: [
    {
    html: "Content in panel"
    }
    ]
    }
    ]
    }});

    Thanks in advance.

  2. #2
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,394
    Answers
    148
    Vote Rating
    22
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    If you are adding the form panel directly to your app Viewport you should have no problem.
    It automatically takes all the available screen size.
    If you are adding it to a "Container", you should be sure that the container is configured to use a "fit" layout

    Code:
    ...
    layout: 'fit'
    ...
    In this way your FormPanel will be automatically stretched.
    PS: Please wrap your code into forum code tags.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    CEO at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    http://www.tux-components.com/


Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi