From fb11d67d8ea594e94cb5995a3be7909152c95e36 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 27 Jul 2019 13:06:23 +0200 Subject: [PATCH] Keep memory window header at top. --- server/TracyView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 69b9ebff..20c487e5 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -9958,7 +9958,7 @@ void View::DrawMemory() auto& mem = m_worker.GetMemData(); ImGui::SetNextWindowSize( ImVec2( 1100, 500 ), ImGuiCond_FirstUseEver ); - ImGui::Begin( "Memory", &m_memInfo.show ); + ImGui::Begin( "Memory", &m_memInfo.show, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse ); if( mem.data.empty() ) { @@ -9984,6 +9984,7 @@ void View::DrawMemory() const auto zvMid = m_zvStart + ( m_zvEnd - m_zvStart ) / 2; ImGui::Separator(); + ImGui::BeginChild( "##memory" ); #ifdef TRACY_EXTENDED_FONT if( ImGui::TreeNode( ICON_FA_AT " Allocations" ) ) #else @@ -10200,6 +10201,7 @@ void View::DrawMemory() ImGui::TreePop(); } + ImGui::EndChild(); ImGui::End(); }