Hi Fotis, hi Wesley Thanks Wesley for the tip on VBox. (I was just looking how to face the same problem with a VBox here, when your post came in :)
Then let me add one more such counter-intuitive setting I came across some time ago. I had a ADG with non-sortable columns, and I was trying (in vain) to get rid of the vertical separator bar that shows up in the column headers (that separates the sort indicator-arrow). In my case columns were non sortable and the arrow was just an empty space, thus no need for the separator bar. The setting that does the trick is: sortExpertMode="true" (!!!) Another example IMO of not exactly intuitive terminology. Isn't it? Thanks George --- In flexcoders@yahoogroups.com, Fotis Chatzinikos <fotis.chatzini...@...> wrote: > > Thanks! Setting the minimum height works but still its counterintuitive at > the least... > > Can somebody from Adobe point me to the docs explaining this behaviour? > > TIA, > Fotis > > On Thu, Aug 20, 2009 at 10:39 AM, Wesley Acheson > <wesley.ache...@...>wrote: > > > > > > > Sorry no I meant the min height. > > > > I didn't have a lot of time to answer when I typed this reply out before. > > > > I've seen this behaviour with dataGrid and I got stuck with it too, I asked > > here on the flexcoders mailing list. Basically when the items in a > > container are larger than its "height". The container when it calculates > > the size of the children sets the minHeight to be a height that contains all > > its children. (or width). It then uses the minHeight as the height of the > > container. However if you explictly set a minHeight that is smaller than the > > sum of the children heights e.g. 0. This minimum height isn't overridden by > > the container. This allows the container to pick up its height property. > > > > Thats the tehory behind why I suggested it. I don't know if it works for > > VBox and I don't know if the problem applies to numeric heights as opposed > > to percentage heights. However I thought it may be worth a shot as its an > > easy thing to test. > > > > Regards, > > > > Wes > > > > On Thu, Aug 20, 2009 at 12:23 AM, Fotis Chatzinikos < > > fotis.chatzini...@...> wrote: > > > >> > >> > >> Hi Wesley, do you mean the maxHeight? > >> > >> My problem is with the height of the box getting bigger than the > >> application instead of staying @ bottom 10. > >> > >> If i set the height or maxHeight it works as advertised. > >> > >> I am not trying to just fix it though.. I am trying to understand/know why > >> it does not work.. > >> > >> Thanks, for the reply though > >> > >> > >> On Thu, Aug 20, 2009 at 12:47 AM, Wesley Acheson < > >> wesley.ache...@...> wrote: > >> > >>> > >>> > >>> try setting the minWidth also. > >>> > >>> On Wed, Aug 19, 2009 at 6:29 PM, fotis.chatzinikos < > >>> fotis.chatzini...@...> wrote: > >>> > >>>> <mx:Application > >>>> xmlns:mx="http://www.adobe.com/2006/mxml" > >>>> width="640" > >>>> height="480" > >>>> > > >>>> <mx:VBox top="100" bottom="10" horizontalCenter="0" width="90%" > >>>> horizontalAlign="left" verticalGap="5" id="debugWinVB_ID"> > >>>> </mx:VBox> > >>>> </mx:Application> > >>>> > >>>> > >>>> At the start of the application the VBox height is 370 > >>>> (Application.height - vbox.top - vbox.bottom) -> Correct. > >>>> > >>>> Child labels are added to this vbox in runtime and as soon as the > >>>> cumulative labels height becomes > 370 the vbox expands and scroll bars > >>>> appear @ the Application level...Why? > >>>> > >>>> Should not the Vbox remain @ 370 height and display inner scrollbars, > >>>> according to the following rule:? > >>>> > >>>> * Component size determined by a pair of constraint-based layout > >>>> properties (left-right or top-bottom) overrides any explicit or > >>>> percentage-based size specifications. For example, if you specify both > >>>> left > >>>> and right constraints, the calculated constraint-based width overrides > >>>> the > >>>> width set by a width or percentWidth property. > >>>> > >>>> > >>>> > >>>> > >>>> ------------------------------------ > >>>> > >>>> -- > >>>> Flexcoders Mailing List > >>>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > >>>> Alternative FAQ location: > >>>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > >>>> Search Archives: > >>>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > >>>> Links > >>>> > >>>> > >>>> > >>>> > >>> > >> > >> > >> -- > >> Fotis Chatzinikos, Ph.D. > >> Founder, > >> Phinnovation > >> fotis.chatzini...@..., > >> > >> > >> > > > > > > > > -- > Fotis Chatzinikos, Ph.D. > Founder, > Phinnovation > fotis.chatzini...@..., >