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

Web MX ComboBox crashes on getVisibileApplicationRect: no softKeyboardRect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Apache Flex 4.14.1
    • None
    • mx: ComboBox
    • None
    • IntelliJ IDEA 13.1.6
      Flex 4.14.1.20150325
      Component set: MX only (tried SPARK+MX to no avail)
      Target player: 16.0
      Flash Player 17.0.0.134
      Firefox 37.0.2
      Windows 7 Pro SP1

    Description

      I am migrating my crusty old code from 3.6.0 to 4.14.1 (FINALLY) and I am getting an issue with a combo box. Mostly, whenever I try to press the combo box, it gives me an exception in the systemmanager getVisibleApplicationRect saying it's unable to retrieve the softKeyboardRect. That feature is optional from what I've seen, and I don't have it in my current version. It's deep in the engine and cannot really patch it easily. I could probably monkey-patch my way around, but for now, it's a bummer.

      Important stacktrace with affected lines:
      getVisibleApplicationRect: SystemManager in SystemManager.as:3561:
      var softKeyboardRect:Rectangle = stage.softKeyboardRect;

      displayDropdown: ComboBox in ComboBox.as:1779:
      var screen:Rectangle = sm.getVisibleApplicationRect(null, true);

      downArrowButton_buttonDownHandler: ComboBox in ComboBox.as:2035:
      displayDropdown(true, event);

      Received exception:
      [Fault] exception, information=ReferenceError: Error #1069: Property softKeyboardRect not found on flash.display.Stage and there is no default value.
      at mx.managers::SystemManager/getVisibleApplicationRect()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/managers/SystemManager.as:3561]
      at mx.controls::ComboBox/displayDropdown()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/mx/src/mx/controls/ComboBox.as:1779]
      at mx.controls::ComboBox/downArrowButton_buttonDownHandler()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/mx/src/mx/controls/ComboBox.as:2035]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/core/UIComponent.as:13688]
      at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::buttonPressed()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/mx/src/mx/controls/Button.as:2491]
      at mx.controls::Button/mouseDownHandler()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/mx/src/mx/controls/Button.as:2752]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/core/UIComponent.as:13688]
      at mx.managers::SystemManager/mouseEventHandler()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/managers/SystemManager.as:2926]

      Invalid line for 4.14.1/libs/player/16.0/playerglobal.swc!/library.swf:
      [API("670")]
      native public function get softKeyboardRect():flash.geom.Rectangle;

      Stage softKeyboardRect full value:
      <ReferenceError: Error #1069: Property softKeyboardRect not found on flash.display.Stage and there is no default value.>

      Component, as added in my MXML:
      <components:ComboBox id="generalsComboBox"
      width="100%"
      height="20"
      dataProvider="

      {curCityData.generalsCollection}

      "
      itemRenderer="aw.views.war.widgets.ComboItemGeneralsRender"
      labelField="name"
      editable="false"
      change="

      {curCityData.general = (generalsComboBox.selectedItem as WarFormGeneralData).general;}

      "
      selectedIndex="

      {curCityData.generalIndex}

      "

      SWF file information (According to JPEXS):
      Signature: CWS
      Compression: ZLIB
      SWF Version: 27
      GFX: no
      File size: 7684195
      Frame rate: 60
      Frame count: 2

      Attachments

        Activity

          People

            Unassigned Unassigned
            sakamura Michel Donais
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: