Closed SheridanR closed 6 months ago
I did paste your example into simple-example.cpp and it does look fine.
If this is still issue for you please reopen with more details. Thanks!
Looks like I have similar problem. The canvas doesn't fill available window. Moreover, I can move it with scrolling (right button). Zoom also have weird behavior: zoom in decreases canvas, while zoom out -- increases.
The code is simple, I even did't create any nodes.
On update:
if (ImGui::Begin("Info")) {
ed::SetCurrentEditor(m_Context);
ed::Begin("My Editor");
ed::End();
ed::SetCurrentEditor(nullptr);
}
ImGui::End();
m_Context
is initialized this way: m_Context = ed::CreateEditor();
once, while initializing.
I have same problem. Is there any way to use node-editor in new window?
I have recently built it by copying code in my project. I.e. without vcpkg. It works fine so far. I haven't enough time to investigate the problem though.
I'm using imgui v1.90 and NodeEditor v0.9.3, and this issue still persists
Hi,
Sorry for the trivial question, but the examples and the documentation (sparse as it is) are not giving me any clues about this.
Whenever I try to embed the editor canvas in a window (ie ImGui::Begin() / ImGui::End()) the canvas is completely broken. Eg:
Here is my code:
Changing the size of the canvas eg
ed::Begin("My Editor", ImVec2{0.f, 0.f})
seems to make no difference.Am I missing something??