Skip to content

Vertical Scroll Bar Cannot Scroll To Bottom In Select Circumstances #983

@Joshua-Douglas

Description

@Joshua-Douglas

Hello,

I've come across a bug that is preventing users from scrolling to the bottom of a virtual string tree node list in select circumstances. I've attached a sample application that should reveal this issue with the following reproduction steps. This issue was seen with the most recent version of the code base available on GitHub. If need any help reproducing the issue, please let me know.

Reproduction Steps

  • Add a node to an empty virtual string tree
  • Edit the first node's caption so that it is long enough to cause the horizontal scroll bar to show
  • Add additional nodes until the first node is just out of view. Ensure the captions of the new nodes are short enough that a horizontal scroll bar is not needed.
  • Once the longest node is out of view you will note that 1) the horizontal scroll bar is still present, even though all of the nodes in view fit comfortably in the window, and 2) the vertical scroll bar will not allow you to scroll to the bottom
  • If you insert an additional node (or expand the width of the VST window) then the horizontal scroll bar will disappear as expected and the vertical scroll bar will resume working as expected.

Note the following:

  • Before the recent patch to TVTEdit.CreateParams(), an access violation was happening whenever this scrolling issue was triggered.
  • This issue is not unique to the first node. It occurs if any node's name is long enough to show the horizontal scroll bar and if the node with longest name is just out of view.
  • Using the provided sample application I can reproduce the error by naming the first token 'A long node name to fill the entire width of the VST window' and the inserting 6 more tokens. Depending on the resolution settings and custom token window size you may need a longer token name and may need to insert more or less nodes.

VSTScrollingBug.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugLow PriorityPull Requests InvitedThere are no current plans to address the issue, but we would be happy if someone supplies a PR.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions