VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-03-27 13:08:06 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-03-27 16:16:00 +0200
commitc9deed46869bc88a71f821e16fdd0ac01c7ff9a8 (patch)
treed4671859ce2338d048e5e9530d6cfb7b6256a96e
parent7df9724e20005ccdd3e5daaeebf80eb0c5c46083 (diff)
downloadVeraCrypt-c9deed46869bc88a71f821e16fdd0ac01c7ff9a8.tar.gz
VeraCrypt-c9deed46869bc88a71f821e16fdd0ac01c7ff9a8.zip
Linux/MacOSX: make the benchmark dialog resize dynamically to accommodate the displayed results.
-rw-r--r--src/Main/Forms/BenchmarkDialog.cpp5
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)