* Fixed bug when using AddChild to add nodes, that was preventing a node to be selected

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@175 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
blikblum
2007-05-30 12:05:35 +00:00
parent 02aec68d04
commit 26c090ebf4

View File

@ -23975,7 +23975,13 @@ begin
Sort(Parent, FHeader.FSortColumn, FHeader.FSortDirection, True);
InvalidateToBottom(Parent);
UpdateScrollbars(True);
//Calling UpdateHorizontalScrollBar without a header leads to a
//wrong NodeWidth because the node is not initialized at this time.
//As result the horizontal scrollbar is not correctly
//sized and the node can not be selected by a click.
if HandleAllocated then
UpdateVerticalScrollBar(True)
end;
end
else