SynEdit: LineNumber-Gutter: update digit-count when setting to visible (Digits where cut off)

git-svn-id: trunk@39747 -
This commit is contained in:
martin 2013-01-03 12:57:50 +00:00
parent e1398d3520
commit eee7f5c069

View File

@ -38,6 +38,7 @@ type
procedure BufferChanged(Sender: TObject);
procedure FontChanged(Sender: TObject);
procedure SetAutoSize(const AValue : boolean); override;
procedure SetVisible(const AValue: boolean); override;
function CreateMouseActions: TSynEditMouseInternalActions; override;
public
constructor Create(AOwner: TComponent); override;
@ -211,6 +212,12 @@ begin
if AValue then LineCountChanged(nil, 0, 0);
end;
procedure TSynGutterLineNumber.SetVisible(const AValue: boolean);
begin
inherited SetVisible(AValue);
if AValue then LineCountChanged(nil, 0, 0);
end;
function TSynGutterLineNumber.CreateMouseActions: TSynEditMouseInternalActions;
begin
Result := TSynEditMouseActionsLineNum.Create(self);