Hybrid View
-
6 Feb 2012 9:05 AM #1
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.
-
6 Feb 2012 1:50 PM #2
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
-
6 Feb 2012 2:04 PM #3
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
-
6 Feb 2012 2:11 PM #4
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
-
6 Feb 2012 2:24 PM #5
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 Feb 2012 2:33 PM #6
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).
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote