# ComboBox Menu misplaced when animating from off-screen

**URL:** <https://forums.unrealengine.com/t/combobox-menu-misplaced-when-animating-from-off-screen/450875>\
**Category:** UI\
**Tags:** combobox, unreal-engine, bug-report, Widget, UE4, question, UMG\
**Created:** [June 18, 2019, 3:43pm UTC](https://forums.unrealengine.com/t/combobox-menu-misplaced-when-animating-from-off-screen/450875 "2019-06-18T15:43:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cucsijuan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cucsijuan](https://forums.unrealengine.com/u/Cucsijuan)\
**Post date:** [June 18, 2019, 3:43pm UTC](https://forums.unrealengine.com/t/combobox-menu-misplaced-when-animating-from-off-screen/450875/1 "2019-06-18T15:43:07Z")

</div>

Hi, I have a canvas panel with a ComboBox off screen, when I move it to the screen with a widget animation (or mannually updating its transform), the dropdown is misplaced, it usually can be seen if you play on new editor window in fullscreen (1080p), also this can be seen if you stretch the editor viewport to a wide aspect ratio.

 ![280138-misplacedbox.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/1/b310d03b752841bcb91f860da68b1984ca6c5f51.jpeg)

I’m attaching a proyect to test this issue, the 3rd and 4th combo boxes are created off screen and are animated by Widget anim and manually respectively.  
The first Combobox is just rendered on screen, and the second one is created on screen invisible, then moved off screen, and its animated via widget animation. These two Combos are working as expected.

[Download Combo box project][3]

thanks for your help.

---

<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:** [June 18, 2019, 4:10pm UTC](https://forums.unrealengine.com/t/combobox-menu-misplaced-when-animating-from-off-screen/450875/2 "2019-06-18T16:10:40Z")

</div>

If this is caused by animating the transform then this is a bug.

> if you stretch the editor viewport to  
> a wide aspect ratio.

Do you mean run-time?

One way around this, whether it’s a bug or not, would be to wrap the combo with a user widget and then animate that widget. Try it out and see if that helps.

---

<div class="post-metadata">

**Author:** ![Cucsijuan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cucsijuan](https://forums.unrealengine.com/u/Cucsijuan)\
**Post date:** [June 18, 2019, 4:36pm UTC](https://forums.unrealengine.com/t/combobox-menu-misplaced-when-animating-from-off-screen/450875/3 "2019-06-18T16:36:06Z")

</div>

You can do it at runtime or before running the game. I think that the issue is when you start with the combo outside the viewport, and you animate it back to the viewport.

The workaround I’ve made is starting with the combobox in screen but invisible, then in OnInitialize I move the combo outside the viewport and turn it visible. then I can animate it back to the viewport and works fine (Did this on the second combobox on the Test Project).

> One way around this, whether it’s a bug or not, would be to wrap the combo with a user widget and then animate that widget. Try it out and see if that helps.

This is how I have it on the main project, but I will try it on the test project and come back with an update.

thanks for your answer.

---

<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:** [June 18, 2019, 4:45pm UTC](https://forums.unrealengine.com/t/combobox-menu-misplaced-when-animating-from-off-screen/450875/4 "2019-06-18T16:45:27Z")

</div>

It’s a nice catch, actually. Definitely not working as expected.

In case you decide to file a report:  
[https://epicsupport.force.com/unrealengine/s/](https://epicsupport.force.com/unrealengine/s/)

---

<div class="post-metadata">

**Author:** ![Cucsijuan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cucsijuan](https://forums.unrealengine.com/u/Cucsijuan)\
**Post date:** [June 18, 2019, 5:29pm UTC](https://forums.unrealengine.com/t/combobox-menu-misplaced-when-animating-from-off-screen/450875/5 "2019-06-18T17:29:55Z")

</div>

Yeah I will report it, tried wraping the combobox with a widget and didnt work either,

---

<div class="post-metadata">

**Author:** ![Cucsijuan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cucsijuan](https://forums.unrealengine.com/u/Cucsijuan)\
**Post date:** [June 23, 2019, 9:18pm UTC](https://forums.unrealengine.com/t/combobox-menu-misplaced-when-animating-from-off-screen/450875/6 "2019-06-23T21:18:53Z")

</div>

This is a bug, the issue link is the following: [Unreal Engine Issues and Bug Tracker (UE-76555)](https://issues.unrealengine.com/issue/UE-76555)

if you have this problem, a provisional solution would be to put the combobox inside the viewport, and move it off screen in OnInitialize(), then you can animate it as intended.
