mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 18:39:30 +02:00
synedit: syncompletion: fix AVs when shown with different screen DPI.
git-svn-id: trunk@54221 -
This commit is contained in:
parent
00e450bfa7
commit
ea51db1a39
@ -575,8 +575,6 @@ begin
|
||||
// we have no resource => must be constructed using CreateNew
|
||||
inherited CreateNew(AOwner, 1);
|
||||
FItemList := TStringList.Create;
|
||||
BorderStyle := bsNone;
|
||||
FormStyle := fsSystemStayOnTop;
|
||||
Scroll := TScrollBar.Create(self);
|
||||
Scroll.Kind := sbVertical;
|
||||
Scroll.OnChange := @ScrollChange;
|
||||
@ -642,6 +640,9 @@ begin
|
||||
ShowHint := False;
|
||||
EndFormUpdate;
|
||||
FResizeLock := 0;
|
||||
|
||||
BorderStyle := bsNone;
|
||||
FormStyle := fsSystemStayOnTop;
|
||||
end;
|
||||
|
||||
procedure TSynBaseCompletionForm.Deactivate;
|
||||
@ -1148,7 +1149,8 @@ begin
|
||||
GetTextMetrics(Canvas.Handle, TextMetric);
|
||||
FFontHeight := TextMetric.tmHeight+2;
|
||||
SetNblinesInWindow(FNbLinesInWindow);
|
||||
SizeDrag.Height := Max(7, FFontHeight * 2 div 3);
|
||||
if SizeDrag<>nil then
|
||||
SizeDrag.Height := Max(7, FFontHeight * 2 div 3);
|
||||
finally
|
||||
dec(FResizeLock);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user