Fix columns size in source view files list.

This commit is contained in:
Bartosz Taudul 2024-09-28 02:27:45 +02:00
parent 429de331d6
commit 0e6ba23800
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1990,10 +1990,8 @@ void SourceView::RenderSymbolSourceView( const AddrStatData& as, Worker& worker,
if( !widthSet )
{
widthSet = true;
const auto w = ImGui::GetWindowWidth();
const auto c0 = ImGui::CalcTextSize( "12345678901234567890" ).x;
ImGui::SetColumnWidth( 0, c0 );
ImGui::SetColumnWidth( 1, w - c0 );
}
}
for( auto& v : fileCountsVec )