# Programmatically changing StackPanel scroll position

**URL:** <https://forum.babylonjs.com/t/programmatically-changing-stackpanel-scroll-position/32994>\
**Category:** Questions\
**Created:** [August 12, 2022, 1:02pm UTC](https://forum.babylonjs.com/t/programmatically-changing-stackpanel-scroll-position/32994 "2022-08-12T13:02:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajp](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ajp/32/9504_2.png) [@ajp](https://forum.babylonjs.com/u/ajp)\
**Post date:** [August 12, 2022, 1:02pm UTC](https://forum.babylonjs.com/t/programmatically-changing-stackpanel-scroll-position/32994/1 "2022-08-12T13:02:47Z")

</div>

I have a scrollViewer. I would like to change it’s scroll position. I thought someone had mentioned how to do this on the forum but I can’t find it.

If needed, here’s a playground to demo it in: [https://playground.babylonjs.com/#CD4AQK#1](https://playground.babylonjs.com/#CD4AQK#1)

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [August 12, 2022, 1:23pm UTC](https://forum.babylonjs.com/t/programmatically-changing-stackpanel-scroll-position/32994/2 "2022-08-12T13:23:29Z")

</div>

Hi,  
Hope you are well.  
I believe you are looking for the ‘value’ of the ‘verticalBar’, yes? Something like this?

> **[Babylon.js Playground](https://playground.babylonjs.com/#CD4AQK%232)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![ajp](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ajp/32/9504_2.png) [@ajp](https://forum.babylonjs.com/u/ajp)\
**Post date:** [August 12, 2022, 1:44pm UTC](https://forum.babylonjs.com/t/programmatically-changing-stackpanel-scroll-position/32994/3 "2022-08-12T13:44:48Z")

</div>

Brilliant. That’s it! Thanks @mawa. And yes I can see that in the docs now. I should have checked there more thoroughly: [Scroll Viewer | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/gui/scrollViewer#scrollbars)
