# UScrollBox::ScrollWidgetIntoView do not show the target widget entirely

**URL:** <https://forums.unrealengine.com/t/uscrollbox-scrollwidgetintoview-do-not-show-the-target-widget-entirely/406825>\
**Category:** UI\
**Tags:** scrollbox, unreal-engine, bug-report, CPP, Blueprint, question, UMG\
**Created:** [October 12, 2017, 8:45am UTC](https://forums.unrealengine.com/t/uscrollbox-scrollwidgetintoview-do-not-show-the-target-widget-entirely/406825 "2017-10-12T08:45:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zoc](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zoc/32/88714_2.png) [@Zoc](https://forums.unrealengine.com/u/Zoc)\
**Post date:** [October 12, 2017, 8:45am UTC](https://forums.unrealengine.com/t/uscrollbox-scrollwidgetintoview-do-not-show-the-target-widget-entirely/406825/1 "2017-10-12T08:45:21Z")

</div>

When calling `UScrollBox::ScrollWidgetIntoView()` (Both in Blueprint and C++) it does not show the target widget entirely.

I got a couple screenshots of how it currently behave, as of UE4.17, and how it should behave (having room, showing the widget entirely. If there’s no room, show as much as possible of it):

![216442-scrollboxbug.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/2/792e112b7f7efe9301cee99af63050f889fd64c3.png)

`UScrollBox::ScrollToEnd()` works as expected (but there isn’t an animation option for it, and the animation is really neat :D)

Hopefully `UScrollBox::ScrollWidgetIntoView()` can be fixed.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [October 12, 2017, 1:58pm UTC](https://forums.unrealengine.com/t/uscrollbox-scrollwidgetintoview-do-not-show-the-target-widget-entirely/406825/2 "2017-10-12T13:58:49Z")

</div>

Hey ,

When I use the Scroll Widget Into View node in blueprints, the Widget to Find is brought into view as expected. Can you provide the setup you’re using or a sample project reproducing the behavior?

---

<div class="post-metadata">

**Author:** ![Zoc](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zoc/32/88714_2.png) [@Zoc](https://forums.unrealengine.com/u/Zoc)\
**Post date:** [October 12, 2017, 8:29pm UTC](https://forums.unrealengine.com/t/uscrollbox-scrollwidgetintoview-do-not-show-the-target-widget-entirely/406825/3 "2017-10-12T20:29:18Z")

</div>

Sure! That’s easy to do 🙂

Something I noticed while I was making this small proof of bug (I’m tempted to type concept here lol), is that it happens when you change the content of the widget (in this case, the text) after it was created. Maybe it’s size isn’t being re-calculated after creation?

If there’s a workaround for this, currently, I’d love to know about it 🙂

Anyway, here’s the project with this issue. It contains both a proof with a custom widget and with a simple “Text” widget.

Thank you very much!

---

<div class="post-metadata">

**Author:** ![Zoc](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zoc/32/88714_2.png) [@Zoc](https://forums.unrealengine.com/u/Zoc)\
**Post date:** [October 26, 2017, 5:17am UTC](https://forums.unrealengine.com/t/uscrollbox-scrollwidgetintoview-do-not-show-the-target-widget-entirely/406825/4 "2017-10-26T05:17:53Z")

</div>

Uhhh… Hopefully this isn’t a bad thing: _bump_

(Afraid of this getting closed due to no activity)

---

<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:** [October 26, 2017, 7:23am UTC](https://forums.unrealengine.com/t/uscrollbox-scrollwidgetintoview-do-not-show-the-target-widget-entirely/406825/5 "2017-10-26T07:23:55Z")

</div>

There are a couple of fixes for the scrollbox in 4.18.

Scrolling into view seems to work fine again. I update the (long) text of the last widget before scrolling it into view. I was half-expecting that a _ForceLayoutPrepass_ will be necessary but that’s not even the case.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [November 3, 2017, 5:30pm UTC](https://forums.unrealengine.com/t/uscrollbox-scrollwidgetintoview-do-not-show-the-target-widget-entirely/406825/6 "2017-11-03T17:30:30Z")

</div>

Hey -

Sorry for the late reply and thank you for the sample project. I was able to see what you are referring to and have entered a report here: [Unreal Engine Issues and Bug Tracker (UE-52000)](https://issues.unrealengine.com/issue/UE-52000) . You can track the report’s status as the issue is reviewed by our development staff. Please be aware that this issue may not be prioritized or fixed soon.

Cheers

---

<div class="post-metadata">

**Author:** ![xianshiUE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xianshiUE](https://forums.unrealengine.com/u/xianshiUE)\
**Post date:** [September 18, 2024, 10:51am UTC](https://forums.unrealengine.com/t/uscrollbox-scrollwidgetintoview-do-not-show-the-target-widget-entirely/406825/7 "2024-09-18T10:51:59Z")

</div>

UE4.27 has same problem. Using “force layout prepass” function can effect.
