mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 03:56:12 +02:00
always calculate range, not only when visible (fixes bug #650)
git-svn-id: trunk@7047 -
This commit is contained in:
parent
ad04037248
commit
8f4536230c
@ -253,22 +253,18 @@ begin
|
||||
ScrollInfo.nPage := FPage;
|
||||
|
||||
// range
|
||||
if Visible then begin
|
||||
OtherScrollbar:=GetOtherScrollBar;
|
||||
If OtherScrollbar.FVisible then
|
||||
SBSize := OtherScrollbar.Size
|
||||
else
|
||||
SBSize := 0;
|
||||
if Kind=sbVertical then
|
||||
FAutoRange := (FRange - ClientHeight)
|
||||
*Shortint(FRange >= ClientHeight + SBSize)
|
||||
else
|
||||
FAutoRange := (FRange - ClientWidth)
|
||||
*Shortint(FRange >= ClientWidth + SBSize);
|
||||
ScrollInfo.nMax := FRange;
|
||||
end
|
||||
OtherScrollbar:=GetOtherScrollBar;
|
||||
If OtherScrollbar.FVisible then
|
||||
SBSize := OtherScrollbar.Size
|
||||
else
|
||||
ScrollInfo.nMax := 0;
|
||||
SBSize := 0;
|
||||
if Kind=sbVertical then
|
||||
FAutoRange := (FRange - ClientHeight)
|
||||
*Shortint(FRange >= ClientHeight + SBSize)
|
||||
else
|
||||
FAutoRange := (FRange - ClientWidth)
|
||||
*Shortint(FRange >= ClientWidth + SBSize);
|
||||
ScrollInfo.nMax := FRange;
|
||||
|
||||
// visible
|
||||
if Kind=sbVertical then
|
||||
|
Loading…
Reference in New Issue
Block a user