diff --git a/profiler/src/profiler/TracyView.cpp b/profiler/src/profiler/TracyView.cpp index 3144f3d3..32df5d15 100644 --- a/profiler/src/profiler/TracyView.cpp +++ b/profiler/src/profiler/TracyView.cpp @@ -1537,6 +1537,7 @@ void View::DpiScaleChanged() m_llmConstraint.Reset(); m_waitStacksConstraint.Reset(); m_frameStatsConstraint.Reset(); + m_sampleEntryConstraint.Reset(); } void View::AddLlmAttachment( const nlohmann::json& json ) diff --git a/profiler/src/profiler/TracyView.hpp b/profiler/src/profiler/TracyView.hpp index 4873c9de..ed83eceb 100644 --- a/profiler/src/profiler/TracyView.hpp +++ b/profiler/src/profiler/TracyView.hpp @@ -1102,6 +1102,7 @@ private: WindowConstraints m_llmConstraint; WindowConstraints m_waitStacksConstraint; WindowConstraints m_frameStatsConstraint; + WindowConstraints m_sampleEntryConstraint; #ifndef __EMSCRIPTEN__ TracyLlm m_llm; diff --git a/profiler/src/profiler/TracyView_Samples.cpp b/profiler/src/profiler/TracyView_Samples.cpp index 581f728f..f4c34dc0 100644 --- a/profiler/src/profiler/TracyView_Samples.cpp +++ b/profiler/src/profiler/TracyView_Samples.cpp @@ -842,6 +842,7 @@ void View::DrawSampleParents() bool show = true; const auto scale = GetScale(); ImGui::SetNextWindowSize( ImVec2( 1400 * scale, 500 * scale ), ImGuiCond_FirstUseEver ); + m_sampleEntryConstraint.Constrain(); ImGui::Begin( "Sample entry stacks", &show, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse ); if( !ImGui::GetCurrentWindowRead()->SkipItems ) { @@ -1022,6 +1023,7 @@ void View::DrawSampleParents() ImGui::SameLine(); ImGui::RadioButton( "Symbol address", &m_showCallstackFrameAddress, 2 ); ImGui::PopStyleVar(); + m_sampleEntryConstraint.MarkMinWidth(); ImGui::Separator(); if( ImGui::BeginTable( "##callstack", 4, ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Borders | ImGuiTableFlags_ScrollY ) )