 
 package spark.components
 {
+import flash.display.DisplayObject;
 import flash.events.Event;
 import flash.events.FocusEvent;
 import flash.events.KeyboardEvent;

                    else if (viewport.horizontalScrollPosition + width < eltBounds.right + focusThickness)
                        viewport.horizontalScrollPosition = eltBounds.right + focusThickness - width;
                }
                                
                if (viewport is UIComponent)
                    UIComponent(viewport).validateNow();
            }
        }
    }
    
    /**

     */
    private function removedFromStageHandler(event:Event):void
    {
        if (getStyle("interactionMode") == InteractionMode.TOUCH)
            systemManager.stage.removeEventListener("orientationChange",orientationChangeHandler);
    }
