0 Replies Latest reply on May 4, 2007 2:35 AM by muzikathzi

    update size of tileList after changing Itemrenerer

    muzikathzi
      Hi everyone.

      I try to update the size of my tiles in the tilelist after changing itemrenderer.
      I´ve set variableRowHeight to true and I´ve two Itemrenderers extending Canvas.
      I change the itemRenderer per script:
      this.myTileList.itemRenderer = new ClassFactory(src.display.itemRenderer.ImageView);
      myTileList.invalidateSize();
      myTileList.invalidateList();
      and
      this.myTileList.itemRenderer = new ClassFactory(src.display.itemRenderer.TextView);
      myTileList.invalidateSize();
      myTileList.invalidateList();

      But the size of the tiles does not change.
      The size of the Itemrenderer is set in the root tag of the itemrenderer:
      <mx:Canvas xmlns:mx=" http://www.adobe.com/2006/mxml" width="80" height="95" >

      plaese help me!
      This is really driving me crasy!
      thanks muzi