1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Keep memory window header at top.

This commit is contained in:
Bartosz Taudul 2019-07-27 13:06:23 +02:00
parent 5c3095707a
commit fb11d67d8e

View File

@ -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();
}