         {
             // Get the keyboard size
             var keyboardRect:Rectangle = stage.softKeyboardRect;
-                        
+            
             var sm:SystemManager = systemManager as SystemManager;
             var scaleFactor:Number = 1;
             

            var appHeight:Number = (stage.stageHeight - keyboardRect.height) / scaleFactor;
            
            if (appHeight != height)
            {                
                setActualSize(width, appHeight);
                validateNow(); // Validate so that other listeners like Scroller get the updated dimensions
            }

    private function softKeyboardDeactivateHandler(event:SoftKeyboardEvent):void
    {
        if (this === FlexGlobals.topLevelApplication)
        {                        
            var sm:SystemManager = systemManager as SystemManager;
            var scaleFactor:Number = 1;
            
