Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Oct 2010
    Posts
    75
    Vote Rating
    1
    JimR is on a distinguished road

      0  

    Default Flex value cannot be set for some HBOX elements

    Flex value cannot be set for some HBOX elements


    I have a Container that holds another Container, and a Form Panel, using HBOX layout. Flex can be set on the chlid Container, but not on the form panel, via Designer. If I add "flex: 1" to the code manually, it works as expected. In general, Flex seems to have this problem -- it is not always there when you would expect it, and instead only the "MaintainFlex" property is available.

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,399
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Does the parent container have a layout of hbox or vbox?

    Child items get the flex configuration when their parent is configured with a box layout.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Ext JS Premium Member
    Join Date
    Oct 2010
    Posts
    75
    Vote Rating
    1
    JimR is on a distinguished road

      0  

    Default


    Parent is hbox. Looks like this:

    container (hbox)
    --panel (vbox)
    ----field sets
    --panel (fit)
    ----text area

    The second panel doesn't have flex available through Designer.
    Last edited by JimR; 6 Feb 2012 at 2:06 PM. Reason: indents to show heirarchy

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,399
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Trying to read above....
    and the second panels parent is a container with a layout of hbox?

    Could you post a simple xds file that illustrates the issue?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  5. #5
    Ext JS Premium Member
    Join Date
    Oct 2010
    Posts
    75
    Vote Rating
    1
    JimR is on a distinguished road

      0  

    Default


    I used "duplicate" to copy everything and start paring it down to a minimal example, and the duplicated version works (while the original still doesn't). So, I have two layouts, exactly the same, and one panel has flex available and one doesn't. Very strange. I'll still see if I can distill what the difference is.

  6. #6
    Ext JS Premium Member
    Join Date
    Oct 2010
    Posts
    75
    Vote Rating
    1
    JimR is on a distinguished road

      0  

    Default


    No luck. Saving it as a new file and then reopening it fixed the problem also. Maybe data corruption? Here is the file anyway. The "notes" panel had no flex property (across many saves and reopens - but saving under a new name seems to be different).
    Attached Files

  7. #7
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,399
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    If you determine how to reproduce it please let us know.

    You may also want to check out the Designer 2 beta.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 1

Tags for this Thread