diff --git a/profiler/src/Filters.cpp b/profiler/src/Filters.cpp index 43dda8c5..4037bc97 100644 --- a/profiler/src/Filters.cpp +++ b/profiler/src/Filters.cpp @@ -58,9 +58,12 @@ void Filters::Clear() void Filters::Draw( float w ) { - m_addrFilter.Draw( "Address filter", w ); - m_portFilter.Draw( "Port filter", w ); - m_progFilter.Draw( "Program filter", w ); + ImGui::SetNextItemWidth( w ); + m_addrFilter.Draw( "Address filter" ); + ImGui::SetNextItemWidth( w ); + m_portFilter.Draw( "Port filter" ); + ImGui::SetNextItemWidth( w ); + m_progFilter.Draw( "Program filter" ); } bool Filters::IsActive() const diff --git a/profiler/src/profiler/TracyView_FindZone.cpp b/profiler/src/profiler/TracyView_FindZone.cpp index 208a3f22..fa92eec0 100644 --- a/profiler/src/profiler/TracyView_FindZone.cpp +++ b/profiler/src/profiler/TracyView_FindZone.cpp @@ -1711,7 +1711,8 @@ void View::DrawFindZoneCpuDetails( int16_t matchSrcloc ) ImGui::AlignTextToFramePadding(); TextDisabledUnformatted( "Filter user text:" ); ImGui::SameLine(); - bool filterChanged = m_userTextFilter.Draw( ICON_FA_FILTER "###resultFilter", 200 ); + ImGui::SetNextItemWidth( 200 ); + bool filterChanged = m_userTextFilter.Draw( ICON_FA_FILTER "###resultFilter" ); ImGui::SameLine(); if( ImGui::Button( ICON_FA_DELETE_LEFT " Clear###userText" ) ) diff --git a/profiler/src/profiler/TracyView_Messages.cpp b/profiler/src/profiler/TracyView_Messages.cpp index d15edbdf..351feb90 100644 --- a/profiler/src/profiler/TracyView_Messages.cpp +++ b/profiler/src/profiler/TracyView_Messages.cpp @@ -32,7 +32,8 @@ void View::DrawMessages() ImGui::AlignTextToFramePadding(); ImGui::Text( ICON_FA_FILTER ); ImGui::SameLine(); - bool filterChanged = m_messageFilter.m_text.Draw( "##Filter messages", 200 ); + ImGui::SetNextItemWidth( 200 ); + bool filterChanged = m_messageFilter.m_text.Draw( "##Filter messages" ); ImGui::SameLine(); ImGui::Spacing(); diff --git a/profiler/src/profiler/TracyView_Statistics.cpp b/profiler/src/profiler/TracyView_Statistics.cpp index c7f3b87c..7bc3e0d0 100644 --- a/profiler/src/profiler/TracyView_Statistics.cpp +++ b/profiler/src/profiler/TracyView_Statistics.cpp @@ -462,7 +462,8 @@ void View::DrawStatistics() ImGui::AlignTextToFramePadding(); TextDisabledUnformatted( "Name" ); ImGui::SameLine(); - m_statisticsFilter.Draw( ICON_FA_FILTER "###resultFilter", 200 ); + ImGui::SetNextItemWidth( 200 ); + m_statisticsFilter.Draw( ICON_FA_FILTER "###resultFilter" ); ImGui::SameLine(); if( ImGui::Button( ICON_FA_DELETE_LEFT " Clear" ) ) { @@ -477,7 +478,8 @@ void View::DrawStatistics() ImGui::SameLine(); ToggleButton( ICON_FA_SCISSORS, m_shortImageNames ); ImGui::SameLine(); - m_statisticsImageFilter.Draw( ICON_FA_FILTER "###imageFilter", 200 ); + ImGui::SetNextItemWidth( 200 ); + m_statisticsImageFilter.Draw( ICON_FA_FILTER "###imageFilter" ); ImGui::SameLine(); if( ImGui::BeginCombo( "###imageCombo", nullptr, ImGuiComboFlags_NoPreview | ImGuiComboFlags_HeightLarge ) ) {