Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6198566

REG: Text in TextArea is scrolled beyond visibility when moving mouse wheel down, on win32

XMLWordPrintable

    • Cause Known
    • x86
    • windows_xp

      I have a textarea with a couple of words. I have set SCROLLBARS_BOTH option but neither of the scrollbars is enabled since the text is well within the visible area.

      The following behaviors are noticed on win_XP.

      1. When I move the mouse wheel, the text in textarea scrolls to it's left and vanishes eventually. This is reproducible only since 1.4.2 and not on 1.4 (Unfortunately I don't have 1.4.1). So this could be a regression in 1.4.1 or 1.4.2. Why should the text scroll when the entire text is well within the visible area?

      2. I am have a lengthy line of text long enough to enable the horizontal scrollbar. I am clicking on the right arrow of the horiz scrollbar. The text starts scrolling to it's left. But it does not stop scrolling even when the thumb of the scrollbar has reached the rightmost end. Scrolling continues until the entire text vanishes. Same behavior is reproducible with MouseWheel also. Shouldn't be sufficient to scroll the text till the end of line is seen? This is reproducible right since 1.4. Not reproducible on 1.3.1.

      I have attached a sample test. Execute the test. You will see a text area with few words. Move the mouse wheel down. If the text scrolls to it's left and vanishes, behavior-1 is reproduced.
      Enter some text on the first line so that horiz scrollbar appears. Now click on the right arrow of the horiz scrollbar. If the text continues scrolling even after the thumb reaches the right most end, the behavior-2 is reproduced.


            osemenovsunw Oleg Semenov (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: