mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Delete-window auto-size (fixes #1667)
This commit is contained in:
parent
ce4eb5ebb0
commit
193dc62a3a
1 changed files with 12 additions and 0 deletions
|
|
@ -35,6 +35,8 @@ type
|
|||
FCommands: TFormCommands;
|
||||
function GetQueueIdentifier: TOperationsManagerQueueIdentifier;
|
||||
property {%H-}Commands: TFormCommands read FCommands implements IFormCommands;
|
||||
protected
|
||||
procedure DoAutoSize; override;
|
||||
public
|
||||
constructor Create(TheOwner: TComponent); override;
|
||||
constructor Create(TheOwner: TComponent; FileSource: IFileSource); reintroduce;
|
||||
|
|
@ -99,6 +101,16 @@ begin
|
|||
Result:= FQueueIdentifier;
|
||||
end;
|
||||
|
||||
procedure TfrmButtonForm.DoAutoSize;
|
||||
begin
|
||||
inherited DoAutoSize;
|
||||
|
||||
if (btnCancel.Left - btnCreateSpecialQueue.BoundsRect.Right) < 16 then
|
||||
begin
|
||||
Constraints.MinWidth:= Width + (16 - (btnCancel.Left - btnCreateSpecialQueue.BoundsRect.Right));
|
||||
end;
|
||||
end;
|
||||
|
||||
constructor TfrmButtonForm.Create(TheOwner: TComponent);
|
||||
begin
|
||||
Create(TheOwner, nil);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue