From 2654a3010cfb6f848573ac60ee55138fcd994a3c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 27 Jul 2019 13:13:50 +0200 Subject: [PATCH] Keep trace info header at top of the window. --- server/TracyView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index c951d093..a45accb7 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -8426,7 +8426,7 @@ void View::DrawInfo() const auto& io = ImGui::GetIO(); ImGui::SetNextWindowSize( ImVec2( 400, 650 ), ImGuiCond_FirstUseEver ); - ImGui::Begin( "Trace information", &m_showInfo ); + ImGui::Begin( "Trace information", &m_showInfo, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse ); if( m_bigFont ) ImGui::PushFont( m_bigFont ); TextFocused( "Program:", m_worker.GetCaptureProgram().c_str() ); if( m_bigFont ) ImGui::PopFont(); @@ -8449,6 +8449,8 @@ void View::DrawInfo() } ImGui::Separator(); + ImGui::BeginChild( "##info" ); + if( ImGui::TreeNode( "Profiler statistics" ) ) { TextFocused( "Profiler memory usage:", MemSizeToString( memUsage.load( std::memory_order_relaxed ) ) ); @@ -9044,6 +9046,7 @@ void View::DrawInfo() } } + ImGui::EndChild(); ImGui::End(); }