Closed akkartik closed 11 months ago
It's behaving as it should.
You put the input inside the scope of the menu bar, that is why it is rendering there.
Is there a better way to phrase my example so the menu doesn't overlap the input?
Put the Slab.Input outside the BeginMenuBar context, and perhaps put it in a window context.
Also, BeginMenuBar and Menu can be outside a window context (not inside the scope of BeginWindow and its pair EndWindow)
I'm confused. Isn't my Slab.Input
inside Slab.BeginWindow()
/Slab.EndWindow()
and outside Slab.BeginMenubar()
/Slab.EndMenuBar()
?
(I do want the menu bar inside a Window at the moment..)
The menu bar is there, it's just getting behind the text input when you click it because it focuses on the text input.
Consider the following test program:
When I run this I see a menu and input as expected. However, if I click on the text input box, the menu disappears. The input seems to overwrite the menu.