0

I'm working on a C++ application that uses Dear Imgui for the UI. This app has Multi-Viewports enabled and uses Imgui docking features. The main application window has a menu bar initialized with BeginMenuBar() (not BeginMainMenuBar()) and it's common to have multiple windows open as part of running the application.

Clicking on a menu - e.g "File" - will draw the menu correctly over top of the main application window, but behind any secondary or child windows that are open. This happens if and only if the menu is entirely contained in the viewport of the main application window. If the main application window is resized small enough such that the menu is drawn partially outside of the main window's viewport, then it will be drawn over top of any secondary or child windows.

I've been working through the rendering code but I'm still pretty new to Imgui, so I'd appreciate any help with this issue.

So far I've tried adjusting when the calls to BeginMenuBar() and BeginMenu() are made in the code, but this hasn't affected anything and I really didn't expect it to.

3
  • 1
    Please edit your question to include a minimal reproducible example so that readers can run your code to answer your question. Commented Feb 11 at 14:55
  • Please provide enough code so others can better understand or reproduce the problem. Commented Feb 11 at 21:11
  • My apologies for not having a reproducible example. It's taking longer than expected. I'll be better about this if I submit questions in the future. Commented Feb 12 at 19:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.