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
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC
1 changed files with 5 additions and 0 deletions

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)