mirror of https://gitlab.com/basile.b/dexed.git
put the scrollpreview on top of the editor, cmaybe close #190
This commit is contained in:
parent
ab8bbe84c0
commit
b9c601bcb2
|
@ -837,9 +837,11 @@ begin
|
||||||
inherited create(editor);
|
inherited create(editor);
|
||||||
visible := false;
|
visible := false;
|
||||||
|
|
||||||
parent := editor;
|
BevelOuter:= bvNone;
|
||||||
width := 475;
|
BevelInner:= bvNone;
|
||||||
height := 275;
|
parent := Application.MainForm;
|
||||||
|
width := scaleX(475, 96);
|
||||||
|
height := scaleY(275, 96);
|
||||||
|
|
||||||
fMemo:= TSynEdit.Create(self);
|
fMemo:= TSynEdit.Create(self);
|
||||||
fMemo.Parent := self;
|
fMemo.Parent := self;
|
||||||
|
@ -3501,7 +3503,7 @@ begin
|
||||||
begin;
|
begin;
|
||||||
fScrollMemo.Visible:=true;
|
fScrollMemo.Visible:=true;
|
||||||
fScrollMemo.goToLine(trunc((lines.Count / Height) * Y));
|
fScrollMemo.goToLine(trunc((lines.Count / Height) * Y));
|
||||||
fScrollMemo.left := width - 40 - fScrollMemo.Width;
|
fScrollMemo.left := mouse.CursorPos.x - fScrollMemo.Width - 10;
|
||||||
fScrollMemo.Top:= Y - 5;
|
fScrollMemo.Top:= Y - 5;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue