-
Notifications
You must be signed in to change notification settings - Fork 608
Open
Description
Tooltips in node editor show up in wrong position.
Repro:
diff --git a/examples/basic-interaction-example/basic-interaction-example.cpp b/examples/basic-interaction-example/basic-interaction-example.cpp
index 4253533..7cc8991 100644
--- a/examples/basic-interaction-example/basic-interaction-example.cpp
+++ b/examples/basic-interaction-example/basic-interaction-example.cpp
@@ -77,6 +77,7 @@ struct Example:
ed::SetNodePosition(nodeA_Id, ImVec2(10, 10));
ed::BeginNode(nodeA_Id);
ImGui::Text("Node A");
+ if (ImGui::IsItemHovered()) ImGui::SetTooltip("Node A Tooltip");
ed::BeginPin(nodeA_InputPinId, ed::PinKind::Input);
ImGui::Text("-> In");
ed::EndPin();
When I hover over the Node A, the tooltip shows up near top left window corner, instead on top of the node.
I guess this has to do with Canvas vs. Screen coordinate systems. What would I need to do to make tooltips work better?
Edit: I am in docking branch I have these:
#define IMGUI_VERSION "1.91.9"
#define IMGUI_VERSION_NUM 19190
#define IMGUI_HAS_TABLE
#define IMGUI_HAS_VIEWPORT // Viewport WIP branch
#define IMGUI_HAS_DOCK // Docking WIP branch
Metadata
Metadata
Assignees
Labels
No labels