-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BeginMainMenuBar() and BeginViewportSideBar() disappears #7697
Comments
Your window is programmed to fill the entire viewport so that’s what it does. Bringing to front makes it appear over those bars. You should use viewport->WorkPos and viewport->WorkSize to avoid overlapping menu bars and side bars. |
Hi @ocornut , |
Because your red window also has a Menubar as you passed ImGuiWindowFlags_MenuBar to it. |
I'm so sorry. So I by doing this:
I was already defining a menu in the "main" window. So actually by putting this flag I was sure that putting
And that this was the code that was needed to make it work.
Anyway here is the complete corrected code.
|
Happy to help! |
Version/Branch of Dear ImGui:
Version 1.90.5, Branch: docking
Back-ends:
ImGui_ImplGlfw ImGui_ImplOpenGL3
Compiler, OS:
macOS
Full config/build information:
No response
Details:
I can't figure out what I'm doing wrong.
As soon as I click on the window the menu and the status bar disappears
This issue is part of issue #7631
And I don't know if it is related to issue #6283
Screenshots/Video:
screen.mov
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: