Skip to content

Small TextView is broken scrolling using scrollbar #2761

@chr1st0scli

Description

@chr1st0scli

Describe the bug
A notably small TextView cannot be scrolled correctly using a scrollbar.

This bug relates to #2688 which is corrected. I am mentioning it here because it might need a regression test after this one is corrected.

To Reproduce
Steps to reproduce the behavior:

  1. Add a quite short TextView, so that you don't have to insert a lot of text to reproduce the error.
  2. Set it's ReadOnly property to true and its Text property to several lines, such that they exceed its height. Note that @BDisp had noted that the text view being a read only has nothing to do with the problem.
  3. Attach a vertical scrollbar to it as demonstrated in the UI catalog.
  4. Scroll down to the end using the keyboard arrow keys (I do it programmatically in the screenshot) and then try to scroll up again, by clicking on the scrollbar's arrows or using the mouse's middle button.
  5. Notice that you cannot scroll back to the top.

Expected behavior
To scroll correctly.

Screenshots
Below I am demonstrating the inability to scroll using the scrollbar and the ability to scroll using the keyboard arrow keys with no problem. The bigger TextView above does not suffer from the same problem.

ScrollbarProblem

Desktop (please complete the following information):

  • OS: Windows
  • Version 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions