Fix bug with text window, where it scrolled up of its own intiative

when resized.

[git-p4: depot-paths = "//depot/solvespace/": change = 1927]
This commit is contained in:
Jonathan Westhues 2009-03-11 04:22:32 -08:00
parent bc70089dd0
commit 8c648af4de

View File

@ -490,7 +490,7 @@ done:
(r.bottom - r.top), TRUE);
// If the window is growing, then the scrollbar position may
// be moving, so it's as if we're dragging the scrollbar.
HandleTextWindowScrollBar(0, 0);
HandleTextWindowScrollBar(-1, -1);
InvalidateRect(TextWnd, NULL, FALSE);
break;
}