Results 1 to 7 of 7

Thread: Flex value cannot be set for some HBOX elements

Hybrid View

Previous Post Previous Post   Next Post Next Post
    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
      0  

    Default 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 User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      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

  3. #3
    Ext JS Premium Member
    Join Date
    Oct 2010
    Posts
    75
    Vote Rating
    1
      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 User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      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

  5. #5
    Ext JS Premium Member
    Join Date
    Oct 2010
    Posts
    75
    Vote Rating
    1
      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
      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 Attached Files

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
  •