SynEdit: fix width of autosized gutter parts

git-svn-id: trunk@58329 -
This commit is contained in:
ondrej 2018-06-19 11:27:20 +00:00
parent bf30f6c5f4
commit 4aa02d5b80

View File

@ -609,6 +609,8 @@ var
NewWidth: Integer;
begin
NewWidth := PreferedWidth;
if FSynEdit<>nil then
NewWidth := FSynEdit.Scale96ToFont(NewWidth);
if FWidth = NewWidth then exit;
FWidth := NewWidth;
VisibilityOrSize;
@ -762,7 +764,10 @@ end;
procedure TSynGutterPartBase.ScalePPI(const AScaleFactor: Double);
begin
Width := Round(Width*AScaleFactor);
if not FAutoSize then
Width := Round(Width*AScaleFactor)
else
DoAutoSize;
end;
procedure TSynGutterPartBase.DoOnGutterClick(X, Y : integer);