actionscript 3 - How do I change the size of an HBox in Flex to fit its container? -


I am creating an HBox, setting it to a scroll policy by filling it with a button grid. When I change the size of the window, the stage size changes, and at such a point, HBox ... does. After reaching the height of this grid, this shrinkage stops, as its "minimum-height" breaks down the scrollbar which I am trying to install in this case.

I set the height to 100%, does not it always take the height of the step, her parents?

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Mx: application xmlns: mx = "http://www.adobe.com/2006/mxml" initialize = "init ();" Horizontalcosol policy = "off" vertical cycrol policy = "closed" width = "100%" & gt; & Lt; Mx: script & gt; & Lt ;! [CDATA [import mx.controls.Button; Import mx.containers.grid; Import mx.containers.GridRow; Import mx.containers.GridItem; Protected Works init (): Zero {for (var i: int = 0; i & lt; 3; i ++) {var gRow: GridRow = new GridRow (); GRow.percentWidth = 100; GRO Heights = 100; Var GITIM: GridITIM = New grid item (); GItem.percentWidth = 100; Var BTN: Button = New Button (); Btn.label = "BUTTON"; Btn.percentWidth = 100; Btn.percentHeight = 100; GItem.addChild (btn); GRow.addChild (gItem); MainGrid.addChild (move); }}]] & Gt; & Lt; / Mx: script & gt; & Lt; Mx: hbox width = "100%" height = "100%" horizontalcospolicy = "closed" vertical scroll policity = "id =" main "clip resource =" true "& gt; & Lt; Mx: grid id = "main grid" width = "100%" height = "100%" /> & Lt; / Mx: hbox & gt; & Lt; / Mx: Applications & gt;  

It seems that I mentioned the last answer in my question. It looks like the people of "minHeight" that this grid is set to the height of the grid, and no small will be small, set it to 0, and your good look

I hope that I am doing this dialog with myself other helps someone. :)


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -