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

TextBox.deletePrevChar() does not scroll the text

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: fx1.3
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:
    • Environment:

      WinXP - soma-graphics-scrum-1300.

      Description

      TextBox.deletePrevChar() deletes the previous character from the current caret position. If the textbox has text that exceeds it's visual length, the text scrolls to the left. In such a scenario where I have a text that's triple the size of textbox, I keep the caret at the end of textbox and keep clicking on a button. For every click, I call TextBox.deletePrevChar(). Now when all the visible characters are deleted, the caret stays at position 0 and keeps deleting the chars that are scrolled to the left. Instead, it would be better if the text is scrolled appropriately when characters are deleted. Because currently even when someone clicks on the textbox, he/she won't probably realize there is some text hidden unless he explicitly presses LEFT Arrow.

      I reproduced it on WinXP - soma-graphics-scrum-1300.

      To reproduce the bug run the attached test. Enter text that's twice the length of textbox and click on 'DeletePrevChar' button.

        Attachments

          Activity

            People

            • Assignee:
              gkbrown Greg Brown (Inactive)
              Reporter:
              pmohan Praveen Mohan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: