mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 05:49:23 +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,7 +253,6 @@ begin
|
|||||||
ScrollInfo.nPage := FPage;
|
ScrollInfo.nPage := FPage;
|
||||||
|
|
||||||
// range
|
// range
|
||||||
if Visible then begin
|
|
||||||
OtherScrollbar:=GetOtherScrollBar;
|
OtherScrollbar:=GetOtherScrollBar;
|
||||||
If OtherScrollbar.FVisible then
|
If OtherScrollbar.FVisible then
|
||||||
SBSize := OtherScrollbar.Size
|
SBSize := OtherScrollbar.Size
|
||||||
@ -266,9 +265,6 @@ begin
|
|||||||
FAutoRange := (FRange - ClientWidth)
|
FAutoRange := (FRange - ClientWidth)
|
||||||
*Shortint(FRange >= ClientWidth + SBSize);
|
*Shortint(FRange >= ClientWidth + SBSize);
|
||||||
ScrollInfo.nMax := FRange;
|
ScrollInfo.nMax := FRange;
|
||||||
end
|
|
||||||
else
|
|
||||||
ScrollInfo.nMax := 0;
|
|
||||||
|
|
||||||
// visible
|
// visible
|
||||||
if Kind=sbVertical then
|
if Kind=sbVertical then
|
||||||
|
Loading…
Reference in New Issue
Block a user