# 3d GUI SpherePanel - Change the layout direction

**URL:** <https://forum.babylonjs.com/t/3d-gui-spherepanel-change-the-layout-direction/15891>\
**Category:** Questions\
**Tags:** gui\
**Created:** [November 20, 2020, 7:53pm UTC](https://forum.babylonjs.com/t/3d-gui-spherepanel-change-the-layout-direction/15891 "2020-11-20T19:53:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vrhermit](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vrhermit/32/35296_2.png) [@vrhermit](https://forum.babylonjs.com/u/vrhermit)\
**Post date:** [November 20, 2020, 7:53pm UTC](https://forum.babylonjs.com/t/3d-gui-spherepanel-change-the-layout-direction/15891/1 "2020-11-20T19:53:52Z")

</div>

Hello, I’m working with a SpherePanel to load some data. The default behavior seems to be to insert objects from the top / right. Is there away to have the panel lay out it’s objects from the top / left?

See this [playground](https://www.babylonjs-playground.com/#HB4C01#9) for an example. You can see that the numbers start from the top with the “first” value all of the way to the right.

---

<div class="post-metadata">

**Author:** ![syntheticmagus](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/syntheticmagus/32/395_2.png) [@syntheticmagus](https://forum.babylonjs.com/u/syntheticmagus)\
**Post date:** [November 20, 2020, 8:57pm UTC](https://forum.babylonjs.com/t/3d-gui-spherepanel-change-the-layout-direction/15891/2 "2020-11-20T20:57:34Z")

</div>

Hi radicalappdev,

Welcome to Babylon! I don’t know of support for what you’re talking about that’s built into `SpherePanel` right now, unfortunately. The behavior in question is coming from [this function](https://github.com/BabylonJS/Babylon.js/blob/master/gui/src/3D/controls/spherePanel.ts#L60-L69), and specifically from line 64, so to add real support for this that file would need to be modified. If this is something you need on a more lasting basis, making such a change is the path I’d recommend. However, if you just need an immediate quick fix, we can abuse JavaScript a little to make the change to the behavior inline. 😉 Does this have the effect you’re looking for?

[https://www.babylonjs-playground.com/#HB4C01#377](https://www.babylonjs-playground.com/#HB4C01#377)

Hope this helps, and best of luck!

---

<div class="post-metadata">

**Author:** ![vrhermit](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vrhermit/32/35296_2.png) [@vrhermit](https://forum.babylonjs.com/u/vrhermit)\
**Post date:** [November 20, 2020, 9:32pm UTC](https://forum.babylonjs.com/t/3d-gui-spherepanel-change-the-layout-direction/15891/3 "2020-11-20T21:32:13Z")

</div>

Thanks! Your solution works well for what I’m trying to do. 😃
