mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-28 17:49:21 +02:00
IDE: fix smart hint position
git-svn-id: trunk@53368 -
This commit is contained in:
parent
cf080374cd
commit
e57fbc2eb3
@ -11070,11 +11070,11 @@ begin
|
||||
//Find start of identifier
|
||||
AtomRect := Rect(-1,-1,-1,-1);
|
||||
SrcEdit.EditorComponent.GetWordBoundsAtRowCol(CaretPos, AtomStartPos, AtomEndPos);
|
||||
AtomRect.TopLeft := SrcEdit.EditorComponent.RowColumnToPixels(Point(AtomStartPos, CaretPos.y));
|
||||
AtomRect.BottomRight := SrcEdit.EditorComponent.RowColumnToPixels(Point(AtomEndPos, CaretPos.y));
|
||||
AtomRect.TopLeft := SrcEdit.EditorComponent.RowColumnToPixels(Point(AtomStartPos, CaretPos.y+1));
|
||||
AtomRect.BottomRight := SrcEdit.EditorComponent.RowColumnToPixels(Point(AtomEndPos, CaretPos.y+1));
|
||||
Inc(AtomRect.Bottom, SrcEdit.EditorComponent.LineHeight);
|
||||
|
||||
SrcEdit.ActivateHint(AtomRect, BaseURL, SmartHintStr, AutoShown);
|
||||
SrcEdit.ActivateHint(AtomRect, BaseURL, SmartHintStr, AutoShown, False);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user