VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Forms/BenchmarkDialog.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-03-27 11:08:06 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-03-27 14:16:00 (GMT)
commitc9deed46869bc88a71f821e16fdd0ac01c7ff9a8 (patch)
treed4671859ce2338d048e5e9530d6cfb7b6256a96e /src/Main/Forms/BenchmarkDialog.cpp
parent7df9724e20005ccdd3e5daaeebf80eb0c5c46083 (diff)
downloadVeraCrypt-c9deed46869bc88a71f821e16fdd0ac01c7ff9a8.zip
VeraCrypt-c9deed46869bc88a71f821e16fdd0ac01c7ff9a8.tar.gz
Linux/MacOSX: make the benchmark dialog resize dynamically to accommodate the displayed results.
Diffstat (limited to 'src/Main/Forms/BenchmarkDialog.cpp')
-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 66a45b1..440bc1d 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)