Skip to content

Commit 16b116e

Browse files
committed
Enable horizontal scrollbar in source view.
1 parent 6793b34 commit 16b116e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎server/TracySourceView.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ void SourceView::Render( const Worker& worker, View& view )
889889

890890
void SourceView::RenderSimpleSourceView()
891891
{
892-
ImGui::BeginChild( "##sourceView", ImVec2( 0, 0 ), true );
892+
ImGui::BeginChild( "##sourceView", ImVec2( 0, 0 ), true, ImGuiWindowFlags_HorizontalScrollbar );
893893
if( m_font ) ImGui::PushFont( m_font );
894894

895895
auto draw = ImGui::GetWindowDrawList();
@@ -1376,7 +1376,7 @@ void SourceView::RenderSymbolSourceView( uint32_t iptotal, unordered_flat_map<ui
13761376
}
13771377

13781378
const float bottom = m_srcSampleSelect.empty() ? 0 : ImGui::GetFrameHeight();
1379-
ImGui::BeginChild( "##sourceView", ImVec2( 0, -bottom ), true, ImGuiWindowFlags_NoMove );
1379+
ImGui::BeginChild( "##sourceView", ImVec2( 0, -bottom ), true, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_HorizontalScrollbar );
13801380
if( m_font ) ImGui::PushFont( m_font );
13811381

13821382
auto draw = ImGui::GetWindowDrawList();
@@ -1654,7 +1654,7 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
16541654
#endif
16551655

16561656
const float bottom = m_asmSampleSelect.empty() ? 0 : ImGui::GetFrameHeight();
1657-
ImGui::BeginChild( "##asmView", ImVec2( 0, -bottom ), true, ImGuiWindowFlags_NoMove );
1657+
ImGui::BeginChild( "##asmView", ImVec2( 0, -bottom ), true, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_HorizontalScrollbar );
16581658
if( m_font ) ImGui::PushFont( m_font );
16591659

16601660
int maxAddrLen;

0 commit comments

Comments
 (0)