mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 09:29:35 +02:00
synedit: clean up
git-svn-id: trunk@15520 -
This commit is contained in:
parent
29ceac9d9b
commit
4c0ed780bf
@ -831,7 +831,6 @@ begin
|
||||
OldWidth:=Bitmap.Width+Scroll.Width;
|
||||
if (OldHeight<>Height) or (OldWidth<>Width) then begin
|
||||
FNbLinesInWindow := (Height-2+(fFontHeight-1)) div fFontHeight;
|
||||
Bitmap.SetSize(Scroll.Left, Height - 2);
|
||||
Invalidate;
|
||||
end;
|
||||
end;
|
||||
@ -866,9 +865,10 @@ begin
|
||||
Scroll.Top := 1;
|
||||
Scroll.Left := ClientWidth - Scroll.Width - 1;
|
||||
Scroll.Height := Height - 2;
|
||||
{$ENDIF}
|
||||
{$ELSE}
|
||||
Bitmap.Width := Scroll.Left;
|
||||
Bitmap.Height := Height - 2;
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
procedure TSynBaseCompletionForm.SetPosition(const Value: Integer);
|
||||
|
Loading…
Reference in New Issue
Block a user