1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    12
    Vote Rating
    0
    Saemy is on a distinguished road

      0  

    Question Problems with Layout: Fit Layout does not fit

    Problems with Layout: Fit Layout does not fit


    Hi everybody,

    I have problems with Layout: fit layout does not fit...

    see my layout:

    I have a TabPanel
    --> Inside is a Panel layout card (green) (OK)
    ------> Inside is a List layout fit (red) (Not OK)
    the list does not fit... there is a space of 17 pixels in element.style (not in css)

    Does somebody have the same problem or better, a solution?

    Saemy
    Attached Images

  2. #2
    Sencha User darthwes's Avatar
    Join Date
    Mar 2010
    Posts
    633
    Vote Rating
    -13
    darthwes can only hope to improve

      0  

    Default


    what happens when you change the internal panel's layout to fit from card?
    Wes

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


    Do you even need to nest a List within a Panel in a TabPanel?
    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
    Aug 2010
    Posts
    303
    Vote Rating
    3
    steve1964 is on a distinguished road

      0  

    Default


    Try to set the height of the list removing the fit layout: height: '100%'

  5. #5
    Sencha User
    Join Date
    Aug 2011
    Posts
    12
    Vote Rating
    0
    Saemy is on a distinguished road

      0  

    Default


    It doesn't matter what i place in the TabPanel, everything has a space of 17 pixels...

    Panel, List, Nested List... etc.

    I tried swich card to fit in Panel, the effect is, that both panels are displayed...

    One of the Panels was correctly fit to top and left (Layout was vbox, strech))
    But when i set i to card again, its not shown correctly... even if i set vbox strech to both child-panels...


  6. #6
    Sencha User
    Join Date
    Aug 2011
    Posts
    12
    Vote Rating
    0
    Saemy is on a distinguished road

      0  

    Default


    I found the Problem...

    i had set

    defaults: {
    styleHtmlContent: true
    },

    in my TabPanel... this results the space