incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cframp...@apache.org
Subject svn commit: r1416993 - /incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/components/Scroller.as
Date Tue, 04 Dec 2012 15:30:51 GMT
Author: cframpton
Date: Tue Dec  4 15:30:50 2012
New Revision: 1416993

URL: http://svn.apache.org/viewvc?rev=1416993&view=rev
Log:
Fix RTE in focusInHandler when focusManager is null.

Modified:
    incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/components/Scroller.as

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/components/Scroller.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/components/Scroller.as?rev=1416993&r1=1416992&r2=1416993&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/components/Scroller.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/components/Scroller.as
Tue Dec  4 15:30:50 2012
@@ -49,6 +49,7 @@ import mx.events.FlexEvent;
 import mx.events.FlexMouseEvent;
 import mx.events.PropertyChangeEvent;
 import mx.events.TouchInteractionEvent;
+import mx.managers.IFocusManager;
 import mx.managers.IFocusManagerComponent;
 import mx.styles.IStyleClient;
 
@@ -2143,10 +2144,12 @@ public class Scroller extends SkinnableC
     {
         super.focusInHandler(event);
         
+		var fm:IFocusManager = focusManager;
+		
         // When we gain focus, make sure the focused element is visible
-        if (viewport && ensureElementIsVisibleForSoftKeyboard)
+        if (fm && viewport && ensureElementIsVisibleForSoftKeyboard)
         {
-            var elt:IVisualElement = focusManager.getFocus() as IVisualElement; 
+            var elt:IVisualElement = fm.getFocus() as IVisualElement; 
             lastFocusedElement = elt;
         }
     }



Mime
View raw message