TileLayout isn’t supposed to have this issue since you typically specify a fixed number of rows/columns. If your code changes the number of rows/columns based on width/height, your code has to be prepared for the appearance/disappearance of scrollbars and not change the number of rows/columns if width/height is merely affected by the scrollbars themselves.
Otherwise, there is always an case where, for example, you have 17 tiles which are 25x25 and the container is 100x100 so you layout 4 columns of tiles and find that you need 5 rows, so you put up a vertical scrollbar which makes the container width 116 so your code now thinks it does have 5 columns so it only needs 4 rows, so it removes the scrollbar which makes your code think it only has 4 columns, and you get stuck in what I call “hysteresis”. Your code should not think there is 5 columns until there is 125 pixels in width. IOW, round down and not up. Could that be your issue? -Alex On 11/5/14, 2:39 AM, "MichaPooh" <[email protected]> wrote: >Hello > >Using a spark List with a TileLayout which resizes the content/items >dynamically via rowAlign="justifyUsingHeight" >columnAlign="justifyUsingWidth" results in a freezing application when >resizing the window... >(see example code below) > >I am using the sdk 4.13 with flashplayer 15 debug standalone (but the same >results when falling back to sdk 4.6/flashplayer 11.x) > >It seems the TileLayout has the same problems as my custom layout >discussed >here ><http://apache-flex-users.2333346.n4.nabble.com/Infinite-recursion-in-cust >om-layout-td5148.html> >: > >It only happens with horizontalScrollPolicy="auto" >verticalScrollPolicy="auto" on the component (List). >Setting this to "on" or "off" makes it work as expected. > >so there is a infinite loop in the updateDisplayList function inside the >TileLayout class I guess.... > >example which simulates a very basic calendar layout: > > > >Should I fill a bug in the apache flex jira? > >Micha P. > > > > >-- >View this message in context: >http://apache-flex-users.2333346.n4.nabble.com/TileLayout-dynamic-size-fre >ezes-application-tp8584.html >Sent from the Apache Flex Users mailing list archive at Nabble.com.
