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

Scroller.ensureElementIsVisible() no longer scrolls keyboard focused elements into view.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Spark: Scroller
    • None
    • Affected OS(s): All OS Platforms
      Browser: Firefox 3.x
      Language Found: English

    Description

      This bug was introduced with revision 22262 which merged changes from 4.y revision 22216 into the trunk

      I've uploaded a sample project to demonstrate the issue.

      Steps to reproduce:
      1. Import the attached Scroller.ensureElementIsVisible project into FlashBuilder
      2. Compile the project against 4.y or the trunk after revision 22262

      Actual Results:

      Tabbing through the controls with the keyboard will not scroll items receiving focus into view.

      Expected Results:

      Tabbing through the controls with the keyboard should scroll items receiving focus into view.

      Workaround (if any):

      I've attached a patched version of spark.components.Scroller for reference.

      The change is at line 1486:

      // Do not snap vertically when increasing the
      // verticalScrollPosition for the soft keyboard
      snapContentScrollPosition(true,
      (getStyle("interactionMode") == InteractionMode.TOUCH
      && !adjustForSoftKeyboard));

      We should only worry about whether or not the soft keyboard is present in InteractionMode.TOUCH.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: