mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 09:14:36 +00:00
Fit trace description entry field to window width.
This commit is contained in:
parent
d9eb04f68e
commit
024182b6a0
@ -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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user