ImGui::TextWrapped("Window will resize every-frame to the size of its content. Note that you don't want to query the window size to output your content because that would create a feedback loop.");
ImGui::Text("Window will resize every-frame to the size of its content.\nNote that you probably don't want to query the window size to\noutput your content because that would create a feedback loop.");
ImGui::SliderInt("Number of lines",&lines,1,20);
for(inti=0;i<lines;i++)
ImGui::Text("%*sThis is line %d",i*4,"",i);// Pad with space to extend size horizontally