     
     /**
      *  @private 
-     */ 
-    private var isSoftKeyboardActive:Boolean = false;
+     */
+    private var oldSoftKeyboardHeight:Number = NaN;
+    
+    /**
+     *  @private 
+     */
+    private var oldSoftKeyboardWidth:Number = NaN;
     
     //--------------------------------------------------------------------------
     //

        
        if (keyboardRect.width > 0 && keyboardRect.height > 0)
        {
            if (lastFocusedElement && !isSoftKeyboardActive && ensureElementIsVisibleForSoftKeyboard)
                ensureElementIsVisible(lastFocusedElement);
            
            isSoftKeyboardActive = true;
        }
    }
    

    {
        // Adjust the scroll position after the application's size is restored. 
        adjustScrollPositionAfterSoftKeyboardDeactivate();
        oldSoftKeyboardHeight = NaN;
        oldSoftKeyboardWidth = NaN;
    }
    
    /**
