Skip to content

Commit

Permalink
Fix columns size in source view files list.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpld committed Sep 28, 2024
1 parent 429de33 commit 0e6ba23
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions profiler/src/profiler/TracySourceView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 0e6ba23

Please sign in to comment.