Results 1 to 4 of 4

Thread: Flex, AutoWidth and AutoHeight of container.

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    64
    Answers
    2
    Vote Rating
    0
      0  

    Exclamation Answered: Flex, AutoWidth and AutoHeight of container.

    HI, i have a situation where the current users are using my developed applcaiiton in 1028*768 resolution and i have hardcoded the width and height of my outer panels to around 860px.

    As Extjs does not support the % of width and height it has become very clutter to view this application in a higher resolution monitors(1280*1024).

    My page has many components inside each panels and almost most of the combobox or textfield width are hardcoded to 120 to 150px. My logic got too much complex when ii tried to use flex to frame all the components inside the container.

    Is there a way i can resolve this??


    Thanks
    Punith

  2. It's not unique, child items need to be items of the layouts that allow for flexible sizing like mentioned above.

  3. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,381
    Answers
    3997
    Vote Rating
    1536
      0  

    Default

    There are many layouts that can accomodate flexible screen resolutions. hbox, vbox, column, anchor, border
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    64
    Answers
    2
    Vote Rating
    0
      0  

    Default

    HI[FONT='Helvetica Neue', Arial, 'Lucida Grande', sans-serif] Simoens,

    I am using a hbox and Vbox panels, but these panels width and height are fixed say width : 720px and height is 500px
    if i am using these panels in a smaller resolution system(1024*768) application would look weird. I know now that it was my coding mistake during initial times we did this.

    If i specify the width of panel to be width:'100%' now it takes the entire screen width no mater of the screen resolution.
    but what about the inner components such as combobox grid and textfield, how can i make them to fit(auto re-size based on the screen resolution) in wit watsoever resolution i use. and i want my combobox width to be fixed and donot want it to be dancing on the screen based on the value size .

    seems to be a unique situation, Kindly help us out.


    Thanks
    Punith
    Last edited by punith.mailme; 21 Feb 2012 at 10:51 PM. Reason: corrected the verbiage

  5. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,381
    Answers
    3997
    Vote Rating
    1536
      0  

    Default

    It's not unique, child items need to be items of the layouts that allow for flexible sizing like mentioned above.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

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
  •