2 Replies Latest reply on Nov 9, 2010 8:43 AM by bchalupka-syPD9H

    Problem with the layout of a list

    bchalupka-syPD9H

      I got a spark list with a TileLayout. It has the requestedColumnCount set to a specific value and the list is centered vertically. The initial dataProvider has many elements so that scrolling is necessary.

      The problem is now that if I change the dataProvider to have less items so that vertical scrolling is no longer necessary the scroll bar still is visible and the height of the list is unchanged so that it appears to be not centered correctly. If I try to scroll the scroll bar dissapears and the height is corrected.

       

      I tried to invalidate the size of the list etc. but nothing worked.

      How can I fix it so that the correct height is set after the dataProvider is changed?

       

      Here is an example: http://pastebin.com/N8D2GkPM

       

       

      Thanks in advance.