1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 02:58:02 -06:00

Linux/MacOSX: make the benchmark dialog resize dynamically to accommodate the displayed results.

This commit is contained in:
Mounir IDRASSI
2018-03-27 13:08:06 +02:00
parent 7df9724e20
commit c9deed4686

View File

@@ -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)