Flex dataGrid itemRenderer, width and height of access cell

When writing a custom itemRenderer, how do you refer to the height and width of the mesh cell in which it will be displayed? That way, it will resize correctly when the grid is resized.

I am writing a dataGrid itemRenderer that draws a histogram in the last column of a table.

I tried the link 'this', 'this.parent' and several other things without success. My temporary hack solution is to add this data to the datacollection, but this will not work when the grid resizes, so I will have to edit it every time.

+3
source share
2 answers

, , , this.width this.height

, , , ResizeEvent.RESIZE protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void .

+5

itemRenderer . MXML itemRenderer, , .

0

Source: https://habr.com/ru/post/1699520/


All Articles