# why my Menu Anchor just can Pop-up once? (After Turning off “Use Application Menu Stack” in the menu anchor advanced setting)

**URL:** <https://forums.unrealengine.com/t/why-my-menu-anchor-just-can-pop-up-once-after-turning-off-use-application-menu-stack-in-the-menu-anchor-advanced-setting/1217840>\
**Category:** UI\
**Tags:** unreal-engine\
**Created:** [July 3, 2023, 6:10am UTC](https://forums.unrealengine.com/t/why-my-menu-anchor-just-can-pop-up-once-after-turning-off-use-application-menu-stack-in-the-menu-anchor-advanced-setting/1217840 "2023-07-03T06:10:27Z")\
**Posts on this page:** 1\
**Showing post:** 30

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 3, 2023, 9:41am UTC](https://forums.unrealengine.com/t/why-my-menu-anchor-just-can-pop-up-once-after-turning-off-use-application-menu-stack-in-the-menu-anchor-advanced-setting/1217840/30 "2023-07-03T09:41:29Z")

</div>

> [@wade0608](#):
>
> abnormal background color

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/5/87537131c7d1cd7df8c8a33220719f2a9216e5f7.png)

This sounds more like it could address it, tbh.

* * *

@wade0608

I recreated it with traditional drag & drop and it works absolutely fine. It needs no timer and no ticking, so it’s really efficient to boot. It does create one **super uncanny** effect I’ve yet to see elsewhere, though. Will investigate if I ever find the time but it’s irrelevant _here_.

Your issue:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/f/f7fcd19109c7473cd3f8040be1498a9d052e22ad.png)

You’re nesting things unnecessarily deep and then shift elements inside itself. Don’t. Shift the _entire_ backup widget inside the canvas of the main widget instead. Otherwise the anchor does not know what to do with the weirdly distorted local space / desired size.

Look up _Drag & Drop_ tuts to see how they work. And how to reference the pop up is shown somewhere above.

* * *

> Look up drag & drop tuts to see how the feature works.

If you do not want to use D&D, you could probably get away it with a timer (or tick) - the method you opted for originally but it’s somewhat crude. Not sure how non-sustainable and maintenance heavy it’s going to get if you keep doing things this way. Hard to tell without know where this is going. I’d personally avoid it.

While D&D is not without its limitations, it, at least, gives you an entire framework and functionality to work with. Sometimes you may want to escape those limitations, ofc. For example: here’s a version of draggable windows that does not utilise d&d and works fine:

> [@How to move a widget panel when I press the mouse button, and follow the mouse cursor](https://forums.unrealengine.com/t/how-to-move-a-widget-panel-when-i-press-the-mouse-button-and-follow-the-mouse-cursor/469473/3):
>
> Yes, that is what I try to do

I used it many times and it worked well enough. It’s using `onMouseMove` to get location.

* * *

Now - the real question: why are you using the `Menu Anchor` in the first place? Its child was never meant to be draggable! Making UMG do what is was never designed to do is a bit like shooting oneself in the foot. Try dragging native button to see what I mean…

If you want to pop new draggable windows, have a look at the link I posted. I’d never use the menu anchor for that. Not saying it couldn’t work, but I’d expect it to be fussy. And it seems to be.

---

_[View the full topic](https://forums.unrealengine.com/t/why-my-menu-anchor-just-can-pop-up-once-after-turning-off-use-application-menu-stack-in-the-menu-anchor-advanced-setting/1217840)._
