Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33211

[Android]: View does not resize after soft keyboard dismissal when resizeForSoftKeyboard=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.6 (Release)
    • None
    • Mobile: SoftKeyboard
    • Flash Builder 4.7 beta
      Flex 4.6.0
      AIR 3.4
      ASUS Transformer (Android 4.0.3)

    Description

      On Android when resizeForSoftKeyboard=true, the view does not resize after dismissing the soft keyboard. This simple app demonstrates the bug.

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      applicationDPI="160"
      resizeForSoftKeyboard="true"
      applicationComplete="applicationComplete()">
      <fx:Script>
      <![CDATA[
      private function applicationComplete():void

      { keywordTextInput.setFocus(); }

      private function keywordTextInputEnter():void

      { stage.focus = null; }

      ]]>
      </fx:Script>
      <s:Rect id="rect1" width="100%" height="100%">
      <s:stroke>
      <s:SolidColorStroke color="#FF0000" weight="4"/>
      </s:stroke>
      </s:Rect>
      <s:TextInput id="keywordTextInput" enter="keywordTextInputEnter()" returnKeyLabel="go"/>
      </s:Application>

      1) Start app.
      2) Click on the "go" button on the soft keyboard

      I observe that the red rectangle remains the same size (about half the screen). I expect the red rectangle to resize to fill the entire screen as it does on iOS.

      Attachments

        Activity

          People

            mamsellem Maurice Amsellem
            gudujarlson Mike
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: