Don't wrap messages.

This commit is contained in:
Bartosz Taudul 2020-07-12 15:00:56 +02:00
parent 953df69b77
commit f2d6c79742

View File

@ -8715,7 +8715,16 @@ void View::DrawMessages()
ImGui::TextDisabled( "(%s)", RealToString( tid ) );
ImGui::NextColumn();
ImGui::PushStyleColor( ImGuiCol_Text, v->color );
const auto cw = ImGui::GetContentRegionAvail().x;
const auto tw = ImGui::CalcTextSize( text ).x;
ImGui::TextUnformatted( text );
if( tw > cw && ImGui::IsItemHovered() )
{
ImGui::SetNextWindowSize( ImVec2( 1000, 0 ) );
ImGui::BeginTooltip();
ImGui::TextWrapped( "%s", text );
ImGui::EndTooltip();
}
ImGui::PopStyleColor();
ImGui::NextColumn();
if( hasCallstack )