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

HSlider track (Android4 skin) not being filled if thumb position set programmatically

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Apache Flex 4.14.0
    • Fix Version/s: Apache Flex 4.14.0
    • Component/s: Mobile: HSlider
    • Labels:
      None
    • Environment:
      Windows 7 / Flash Builder 4.7

      Description

      The Android4 HSliderSkin causes the slider track not being filled up to the thumb's position if the slider's thumb is positioned programmatically, i.e. positioned not by user interaction but by setting the value property of the HSlider's instance in code.

      Quick fix by adding the following code lines to the set hostComponent function in HSliderSkin.as:

      if (_hostComponent) _hostComponent.removeEventListener(FlexEvent.VALUE_COMMIT, thumbPositionChanged_handler);
      if (_hostComponent) _hostComponent.addEventListener(FlexEvent.VALUE_COMMIT, thumbPositionChanged_handler);

        Attachments

        1. TextInputFocusIn.png
          4 kB
          Ad Pijnenburg
        2. Nexus5_TextInput_DateTimeButtons.png
          30 kB
          Ad Pijnenburg

          Activity

            People

            • Assignee:
              bigosmallm Om
              Reporter:
              Ad Pijnenburg Ad Pijnenburg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: