source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/widget/DataGrid.mxml

Last change on this file was 1227, checked in by George Lilly, 13 years ago

initial load of EDIS 1.0

File size: 1002 bytes
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<mx:DataGrid
3 xmlns:mx="http://www.adobe.com/2006/mxml">
4
5 <mx:Script>
6 <![CDATA[
7 //this class was added for a bug that exists in Flex..
8 //http://bugs.adobe.com/jira/browse/SDK-9476 and http://www.wietseveenstra.nl/blog/2007/03/27/flex-listbase-scroll-vertically-error/
9 // even tho it claims to be fixed but it's not
10 //many people on internet have the same issue..especially when updating the Font size at run time..
11 //Here is the error that gets thrown
12
13 //TypeError: Error #1010: A term is undefined and has no properties.
14 //at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::scrollVertically()
15
16 override protected function updateDisplayList(w:Number, h:Number):void {
17 var b:Boolean = false;
18 if( rendererChanged ) b = true;
19 super.updateDisplayList(w, h);
20 if( b ) {
21 while( rowInfo.length > listItems.length ) rowInfo.pop();
22 }
23 }
24 ]]>
25 </mx:Script>
26
27</mx:DataGrid>
Note: See TracBrowser for help on using the repository browser.