mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 19:39:39 +02:00
SynEdit: LineNumber-Gutter: update digit-count when setting to visible (Digits where cut off)
git-svn-id: trunk@39747 -
This commit is contained in:
parent
e1398d3520
commit
eee7f5c069
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user