PDA

View Full Version : Header width problem on resize. ( FileSystemDataGrid )


fx.barrett
04-22-2009, 08:58 AM
I have a tiny problem with my columns. Since this is a FileSystemDataGrid, I only want to display certain columns and not all it can offer. I have a custom component that extends FileSystemDataGrid and displays only 3 columns.

What I want to do is to have equal column widths. I've done this by overriding the updateDisplayList method and changing each column's size in there... Here's the probem:

When I resize a column manually ( when the application is running ) then the header widths aren't updating... I can see the separation bar of the columns move and display correctly but not the headers...

Did anyone run over this before? How can I also resize my column headers ( I thought they would resize automatically if I resize my column ). Any advice is appreciated, thanks.

fx.barrett
04-22-2009, 12:18 PM
Ok, solved the problem but in a different fashion... Instead of building my component as an .as as file ( which seems to be buggy ) I went with the "MXML way". Funny, I didn't even have to define any width or resizing because the Grid seems to slit itself correctly ( automatically ).