Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the UndoHistory pane not focusing on new nodes when the horizon…

…tal scrollbar is used.
  • Loading branch information...
commit b04a78158c2b91a4dc30f712a2996aa077520ba8 1 parent a8c09ce
@ajpalkovic ajpalkovic authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/VersionTree.cpp
View
4 src/VersionTree.cpp
@@ -333,8 +333,8 @@ void VersionTree::MakeNodeVisible(size_t node_id, bool doCenter) {
if (verticalScrollPos > ypos) verticalScrollPos = ypos;
else if (verticalScrollPos + size.y < ybottom) verticalScrollPos = ybottom - size.y;
- if(horizontalScrollPos > xpos) horizontalScrollPos = xpos;
- else if(horizontalScrollPos+size.x < xpos) horizontalScrollPos = xpos - size.x;
+ //Always focus the version tree on the selected node
+ horizontalScrollPos = xpos;
}
// Redraw the tree with new position
Please sign in to comment.
Something went wrong with that request. Please try again.