# Alarm status table: scrollbar width and return to top in marquee mode \[vision\]

**URL:** <https://forum.inductiveautomation.com/t/alarm-status-table-scrollbar-width-and-return-to-top-in-marquee-mode-vision/67653>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [December 15, 2022, 8:07am UTC](https://forum.inductiveautomation.com/t/alarm-status-table-scrollbar-width-and-return-to-top-in-marquee-mode-vision/67653 "2022-12-15T08:07:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [December 15, 2022, 10:27am UTC](https://forum.inductiveautomation.com/t/alarm-status-table-scrollbar-width-and-return-to-top-in-marquee-mode-vision/67653/2 "2022-12-15T10:27:20Z")

</div>

> [@Aiasa21](#):
>
> How can I change the size of the vertical scrollbar

I was able to accomplish this from a button on my alarm status table using the following code:

```auto
from java.awt import Dimension
scrollPane = event.source.parent.getComponent('Alarm Status Table').getComponent(0).getComponent(0).getComponent(1).getComponent(0)
scrollPane.getVerticalScrollBar().setPreferredSize(Dimension(100, 0))

```

The code gets the scroll pane and directly sets the preferred width of the vertical scroll bar.  
**Here is the result:**  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/4/946b697a9454608b93287dd47fe9c4e1d81c708a.png)

> [@Aiasa21](#):
>
> how I can return to the top

This button actionPerformed script works on my alarm status table:

```auto
from java.awt import Point
viewPort = event.source.parent.getComponent('Alarm Status Table').getComponent(0).getComponent(0).getComponent(1).getComponent(0).getComponent(0)
viewPort.setViewPosition(Point(0,0))

```

It gets the viewport and sets the position to zero.

---

_[View the full topic](https://forum.inductiveautomation.com/t/alarm-status-table-scrollbar-width-and-return-to-top-in-marquee-mode-vision/67653)._
