From 0f183e620fbe3e94af6c29c399b61d99809af01c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 29 Mar 2025 12:46:54 +0000 Subject: Auto resize windows to content --- ui/queryTool.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/queryTool.cpp') diff --git a/ui/queryTool.cpp b/ui/queryTool.cpp index 2267253..549bd9e 100644 --- a/ui/queryTool.cpp +++ b/ui/queryTool.cpp @@ -35,6 +35,7 @@ QueryTool::click(const SDL_MouseButtonEvent & event, const Ray void QueryTool::render(bool & open) { + ImGui::SetNextWindowSize({-1, -1}); ImGui::Begin("Query Tool", &open); ImGui::TextUnformatted(clicked.c_str()); ImGui::End(); -- cgit v1.2.3