Flex Builder 2.0.1 DataGrid Woes...
Posted by Luke Bayes Sat, 13 Jan 2007 01:11:00 GMT
Ali and I were just working on our super-secret project that’s written using Flex 2 and we came across a pretty surprising problem.
We have a DataGrid that slides out of the way and back again. If the application is compiled on his machine, the DataGrid header disappears after being collapsed to less than 2 pixels of width, while it works fine when compiled on my machine.
We finally figured out that he has installed Flex Builder 2.0.1 while I’m still on the good old Flex Builder 2.0… Looks like some kind of fun injection!
Essentially the rule is that if you’re using the latest Flex Builder build (2.0.1), don’t ever let your DataGrids get smaller than 2 pixels wide.
The following example was compiled on my machine in Flex Builder 2.0. You’ll notice that you can close the DataGrid to any width – including zero.This one was compiled on Ali’s machine in Flex Builder 2.0.1. If you close the DataGrid to less than 2 pixels, you notice that the header is gone. We added a reset button that removes and reattaches the instance so you can do it again and again and again. It’s really fun!
After posting this, is appears there are other problems as Ali’s swf throws up scrollbars that we can’t seem to get rid of!
Yaaaay!
Here’s the source for this one:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | |












