[ 
https://issues.apache.org/jira/browse/FLEX-18832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Mclean updated FLEX-18832:
---------------------------------

    Labels: easyfix easytest  (was: )
    
> List control with verticalscrollbar and glow effect in scrollbar's style - 
> throws error during effect
> -----------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-18832
>                 URL: https://issues.apache.org/jira/browse/FLEX-18832
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: List
>    Affects Versions: Adobe Flex SDK 3.2 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: easyfix, easytest
>
> Steps to reproduce:
> 1. Create mxml application
> 2. Put <mx:list id="list1">
> 3. Specify vertical scrollbar style with rollOverEffect
> 4. Specify listverticalScrollPolicy="on"
> 5. Put a button, on click bind list1.dataProvider = new Array()  (important 
> to bind array with less elements, than needed to show thumb on vertical 
> scrollbar)
> 6. Run application
> 7. Move mouse over vertical scrollbar 
> 8. Before glow effect finished - click button to rebind dataProvider
> 9. See error thrown
> mxml application listing:
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute" 
> xmlns:ns1="com.turbostool.client.rides.*" width="570" height="500" 
> xmlns:text="flash.text.*">
>   
>   <mx:Style>
>     .myScrollStyle
>     {
>       rollOverEffect: buttonGlowIn;
>     }
>   </mx:Style>  
>   <mx:List id="list1" verticalScrollPolicy="on" width="200" height="200"
>     verticalScrollBarStyleName="myScrollStyle">
>     
>   </mx:List>
>   <mx:Button label="rebind error" click="list1.dataProvider=new Array()" 
> y="208"  x="106"/>
>    
>   <mx:Glow id="buttonGlowIn" color="0xeeeeee" alphaFrom="0.1" alphaTo="0.5" 
> duration="100" blurYFrom="0" blurXFrom="0"
>              blurYTo="10" blurXTo="10"/>
>   
> </mx:Application>
>  Actual Results:
> TypeError: Error #1009: Cannot access a property or method of a null object 
> reference.
>       at 
> mx.controls.scrollClasses::ScrollBar/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\scrollClasses\ScrollBar.as:1050]
>       at 
> mx.core::UIComponent/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:6351]
>       at 
> mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622]
>       at 
> mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:695]
>       at Function/http://adobe.com/AS3/2006/builtin::apply()
>       at 
> mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
>       at 
> mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]
>  
>  Expected Results:
>  
> Must not throw error, must fill list with data even during visual effect on 
> scrollbar, even if thumb will not appear yet
>  
>  Workaround (if any):
>  
> Remove effects from scrollbar style

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to