Fit trace description entry field to window width.

This commit is contained in:
Bartosz Taudul 2020-02-01 17:36:51 +01:00
parent d9eb04f68e
commit 024182b6a0

View File

@ -11203,6 +11203,7 @@ void View::DrawInfo()
char buf[256]; char buf[256];
buf[descsz] = '\0'; buf[descsz] = '\0';
memcpy( buf, desc.c_str(), descsz ); memcpy( buf, desc.c_str(), descsz );
ImGui::SetNextItemWidth( -1 );
if( ImGui::InputTextWithHint( "", "Enter description of the trace", buf, 256 ) ) if( ImGui::InputTextWithHint( "", "Enter description of the trace", buf, 256 ) )
{ {
m_userData.SetDescription( buf ); m_userData.SetDescription( buf );