Added DockSpaceOverViewport() call, not sure about this because of the menu bar limitation. (#2109)

This commit is contained in:
omar
2018-10-25 15:34:53 +02:00
parent 56ba60ee68
commit c547b2e8ee
3 changed files with 37 additions and 1 deletions

View File

@ -3768,7 +3768,7 @@ void ShowExampleAppDockSpace(bool* p_open)
// When using ImGuiDockNodeFlags_PassthruDockspace, DockSpace() will render our background and handle the pass-thru hole, so we ask Begin() to not render a background.
if (opt_flags & ImGuiDockNodeFlags_PassthruDockspace)
ImGui::SetNextWindowBgAlpha(0.0f);
window_flags |= ImGuiWindowFlags_NoBackground;
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0.0f, 0.0f));
ImGui::Begin("DockSpace Demo", p_open, window_flags);