{"action":"opened","issue":{"url":"https://api.github.com/repos/Virtual-TreeView/Virtual-TreeView/issues/597","labels_url":"https://api.github.com/repos/Virtual-TreeView/Virtual-TreeView/issues/597/labels{/name}","comments_url":"https://api.github.com/repos/Virtual-TreeView/Virtual-TreeView/issues/597/comments","events_url":"https://api.github.com/repos/Virtual-TreeView/Virtual-TreeView/issues/597/events","html_url":"https://github.com/Virtual-TreeView/Virtual-TreeView/issues/597","id":122048052,"number":597,"title":"Vertical Scrollbar Position and Height not correct","user":{"login":"landrix","id":3299479,"avatar_url":"https://avatars.githubusercontent.com/u/3299479?v=3","gravatar_id":"","url":"https://api.github.com/users/landrix","html_url":"https://github.com/landrix","followers_url":"https://api.github.com/users/landrix/followers","following_url":"https://api.github.com/users/landrix/following{/other_user}","gists_url":"https://api.github.com/users/landrix/gists{/gist_id}","starred_url":"https://api.github.com/users/landrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landrix/subscriptions","organizations_url":"https://api.github.com/users/landrix/orgs","repos_url":"https://api.github.com/users/landrix/repos","events_url":"https://api.github.com/users/landrix/events{/privacy}","received_events_url":"https://api.github.com/users/landrix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-14T13:59:46Z","updated_at":"2015-12-14T13:59:46Z","closed_at":null,"body":"I thought, this helps, but it does not help \r\nhttps://github.com/Virtual-TreeView/Virtual-TreeView/issues/556\r\n\r\nif i add many nodes to a vst, the calculated vertical scrollbar does not fit to added nodes. if i scroll down to the end of the list, the scrollbarposition is recalculated and the slider jumps up. This I can do several times, until I reach the right end. \r\n\r\nhere a simple code example:\r\n\r\n  VirtualStringTree1.RootNodeCount := 1;\r\n//  VirtualStringTree1.ReinitNode(VirtualStringTree1.RootNode,true); does not help\r\n\r\nprocedure TForm1.VirtualStringTree1InitNode(Sender: TBaseVirtualTree; ParentNode, Node: PVirtualNode;\r\n  var InitialStates: TVirtualNodeInitStates);\r\nbegin\r\n  case Sender.GetNodeLevel(Node) of\r\n    0 :\r\n    begin\r\n      Sender.ChildCount[Node] := 100;\r\n      Include(InitialStates,ivsHasChildren);\r\n      Include(InitialStates,ivsExpanded);\r\n    end;\r\n    1 :\r\n    begin\r\n      Sender.ChildCount[Node] := 100;\r\n      Include(InitialStates,ivsHasChildren);\r\n      Include(InitialStates,ivsExpanded);\r\n    end;\r\n    2 :\r\n    begin\r\n      Sender.ChildCount[Node] := 100;\r\n      Include(InitialStates,ivsHasChildren);\r\n      //Include(InitialStates,ivsExpanded);\r\n    end;\r\n  end;\r\nend;\r\n\r\nprocedure TForm1.VirtualStringTree1GetText(Sender: TBaseVirtualTree; Node: PVirtualNode; Column: TColumnIndex;\r\n  TextType: TVSTTextType; var CellText: string);\r\nbegin\r\n  Celltext := Sender.GetNodeLevel(Node).ToString + ' '+Node.Index.ToString;\r\nend;\r\n"}}