# How To Change Vision Dropdown Component Scrollbar Width dynamically?

**URL:** <https://forum.inductiveautomation.com/t/how-to-change-vision-dropdown-component-scrollbar-width-dynamically/107331>\
**Category:** Ignition\
**Tags:** vision, scripting\
**Created:** [June 12, 2025, 3:25pm UTC](https://forum.inductiveautomation.com/t/how-to-change-vision-dropdown-component-scrollbar-width-dynamically/107331 "2025-06-12T15:25:48Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [June 17, 2025, 1:13am UTC](https://forum.inductiveautomation.com/t/how-to-change-vision-dropdown-component-scrollbar-width-dynamically/107331/4 "2025-06-17T01:13:47Z")

</div>

I've seen this in the forum before:  
[Column Widths of Dropdown List Table Mode](https://forum.inductiveautomation.com/t/column-widths-of-dropdown-list-table-mode/60321/4)

...but perhaps I did something wrong and didn't realize it when I experimented with this a couple of mornings ago because, at the time, I couldn't get the original scrollbar to accept my size adjustments. This is much simpler, and it gives the desired result:

```python
from java.awt import Dimension
newWidth = 50
dropdownComponent = event.source.parent.getComponent('Dropdown')
dropdown = dropdownComponent.UI.getAccessibleChild(dropdownComponent, 0)
scrollPane = dropdown.getComponent(0)
scrollbar = scrollPane.verticalScrollBar
scrollbar.setPreferredSize(Dimension(newWidth, scrollbar.height))

```

**Result:**

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/b/bba0080b6b996a8cedd8c9f06bd1733b0b5fad5e.png)

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-change-vision-dropdown-component-scrollbar-width-dynamically/107331)._
