diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-03-27 13:08:06 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-03-27 16:16:00 +0200 |
commit | c9deed46869bc88a71f821e16fdd0ac01c7ff9a8 (patch) | |
tree | d4671859ce2338d048e5e9530d6cfb7b6256a96e /src | |
parent | 7df9724e20005ccdd3e5daaeebf80eb0c5c46083 (diff) | |
download | VeraCrypt-c9deed46869bc88a71f821e16fdd0ac01c7ff9a8.tar.gz VeraCrypt-c9deed46869bc88a71f821e16fdd0ac01c7ff9a8.zip |
Linux/MacOSX: make the benchmark dialog resize dynamically to accommodate the displayed results.
Diffstat (limited to 'src')
-rw-r--r-- | src/Main/Forms/BenchmarkDialog.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Main/Forms/BenchmarkDialog.cpp b/src/Main/Forms/BenchmarkDialog.cpp index 66a45b1b..440bc1d9 100644 --- a/src/Main/Forms/BenchmarkDialog.cpp +++ b/src/Main/Forms/BenchmarkDialog.cpp @@ -87,6 +87,11 @@ namespace VeraCrypt } BenchmarkListCtrl->SetColumnWidth(0, wxLIST_AUTOSIZE); + wxSize minSize = BenchmarkListCtrl->GetBestSize (); + minSize.IncBy (10, 20); + BenchmarkListCtrl->SetMinSize(minSize); + Layout (); + Fit(); } void BenchmarkDialog::DoBenchmark (list<BenchmarkResult>& results, Buffer& buffer) |