diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-29 12:46:54 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-29 12:46:54 +0000 |
commit | 0f183e620fbe3e94af6c29c399b61d99809af01c (patch) | |
tree | 7f40960fbf44f14d8aa9b782ce6a3a32a66fd662 | |
parent | Add basic instructions to query tool (diff) | |
download | ilt-0f183e620fbe3e94af6c29c399b61d99809af01c.tar.bz2 ilt-0f183e620fbe3e94af6c29c399b61d99809af01c.tar.xz ilt-0f183e620fbe3e94af6c29c399b61d99809af01c.zip |
Auto resize windows to content
-rw-r--r-- | ui/editNetwork.cpp | 1 | ||||
-rw-r--r-- | ui/queryTool.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ui/editNetwork.cpp b/ui/editNetwork.cpp index a9b041c..c900191 100644 --- a/ui/editNetwork.cpp +++ b/ui/editNetwork.cpp @@ -67,6 +67,7 @@ EditNetwork::Builder::setHeightsFor(Network * network, const Link::CCollection & void EditNetwork::render(bool & open) { + ImGui::SetNextWindowSize({-1, -1}); ImGui::Begin("Edit Network", &open); auto builderChoice = [this]<typename Impl>(const char * name) { 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<GlobalPosition3D> void QueryTool::render(bool & open) { + ImGui::SetNextWindowSize({-1, -1}); ImGui::Begin("Query Tool", &open); ImGui::TextUnformatted(clicked.c_str()); ImGui::End(); |