Skip to content

Commit

Permalink
Fit ImageViewer content on form resize.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kisspeace committed May 8, 2023
1 parent f821336 commit 707762c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/Unit1.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2953,6 +2953,8 @@ procedure TForm1.FormResize(Sender: TObject);
W := MAX_STATUS_BAR_WIDTH;
BtnStatus.width := W;
BtnStatusImageView.Width := W;
if MenuImageViewer.Visible then
ImageViewer.BestFit;
end;

procedure TForm1.FormShow(Sender: TObject);
Expand Down

0 comments on commit 707762c

Please sign in to comment.