Can you post the code for the loop that doesn't work and the one that does?
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of TJ Downes Sent: Wednesday, February 14, 2007 1:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Mystery space So after "some" more testing I figured out this was due to a for loop to set the selectedIndex on the datagrid. I changed this to a for...in loop and the issue is no more. Maybe someone could explain to me why a for loop would affect display/layout? I am still confused why this would be the issue. Thanks TJ --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "TJ Downes" <[EMAIL PROTECTED]> wrote: > > Anyone experience any issues where Flex just throws extra space into the > layout, causing elements to jump or get bumped out of their parent > containers? > > I have this issue with an application and have spent the majority of the > day trying to resolve it. There are three custom components loaded into > a TabNavigator (ive tried other layout containers too). The first > element has about a 50px space below it when it loads, and on certain > events the screen also "jumps". The space does not exist below the other > two components and they utilize almost the exact same layout and code. I > have also tried changing the order of these and the same component will > always behave the same way regardless of the position. > > Any help would be greatly appreciated. >