ICEfaces
  1. ICEfaces
  2. ICE-6532

vertical sliderEntry does not respond to arrow keys

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ace-showcase

      Description

      http://localhost:8080/ace-showcase/sliderEntry.jsf

      The horizontal slider does respond to arrow keys, but the vertical one, right below it, does not, when the max value is set to 1000.

        Activity

        Hide
        Mark Collette added a comment -

        The YUI slider does not internally store the exact value, as one might programmatically set on it. Instead it's designed to respond to user clicks, and so internally does calculations to resolve the value from the pixel location. So, if the range is greater than the pixel length of the slider, then the value ends up being a lossy conversion of value -> pixel -> calculated value. So when stepping by a fixed step value, you won't end up with the exact value you'd expect. If the range is grossly greater than the length, than the conversion rounding leads to the key presses doing nothing at all.

        So, it's an application error to have a range (which is the max minus the min), that is sufficiently greater that the length. That will mean that a large swath of valus map to a single pixel point. If that swath of values is greater than the stepping pixel amount, then the step can't get to the next pixel, and will be unresponsive. You can overcome this by having a large enough stepPercent.

        This is documented in the length and stepPercent properties on sliderEntry, as part of ICE-6337.

        Show
        Mark Collette added a comment - The YUI slider does not internally store the exact value, as one might programmatically set on it. Instead it's designed to respond to user clicks, and so internally does calculations to resolve the value from the pixel location. So, if the range is greater than the pixel length of the slider, then the value ends up being a lossy conversion of value -> pixel -> calculated value. So when stepping by a fixed step value, you won't end up with the exact value you'd expect. If the range is grossly greater than the length, than the conversion rounding leads to the key presses doing nothing at all. So, it's an application error to have a range (which is the max minus the min), that is sufficiently greater that the length. That will mean that a large swath of valus map to a single pixel point. If that swath of values is greater than the stepping pixel amount, then the step can't get to the next pixel, and will be unresponsive. You can overcome this by having a large enough stepPercent. This is documented in the length and stepPercent properties on sliderEntry, as part of ICE-6337 .

          People

          • Assignee:
            Mark Collette
            Reporter:
            Mark Collette
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: