always calculate range, not only when visible (fixes bug #650)

git-svn-id: trunk@7047 -
This commit is contained in:
micha 2005-04-01 08:25:25 +00:00
parent ad04037248
commit 8f4536230c

View File

@ -253,7 +253,6 @@ begin
ScrollInfo.nPage := FPage;
// range
if Visible then begin
OtherScrollbar:=GetOtherScrollBar;
If OtherScrollbar.FVisible then
SBSize := OtherScrollbar.Size
@ -266,9 +265,6 @@ begin
FAutoRange := (FRange - ClientWidth)
*Shortint(FRange >= ClientWidth + SBSize);
ScrollInfo.nMax := FRange;
end
else
ScrollInfo.nMax := 0;
// visible
if Kind=sbVertical then