# Check for vertical scroll bar

**URL:** <https://forum.inductiveautomation.com/t/check-for-vertical-scroll-bar/9387>\
**Category:** Ignition\
**Created:** [November 26, 2014, 5:14pm UTC](https://forum.inductiveautomation.com/t/check-for-vertical-scroll-bar/9387 "2014-11-26T17:14:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![boandersen](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@boandersen](https://forum.inductiveautomation.com/u/boandersen)\
**Post date:** [November 26, 2014, 5:14pm UTC](https://forum.inductiveautomation.com/t/check-for-vertical-scroll-bar/9387/1 "2014-11-26T17:14:13Z")

</div>

Hi all,

I want to make a template that has 2 (power)tables.  
Top table displays data, bottom table is just one line and displays a total. (see screenshot)

Everything syncs nicely and totals are automatically updated.  
My only remaining issues are:  
a) detect if top table has its vertical scroll visible  
b) based on (a) resize width of bottom table

My alternative is to force a 2nd row into the bottom data set if there are more than x rows in the top data set - but that is not very elegant.

Any ideas?

Thanks  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/24dec7ab3010927b82fcde0257aa974c1d3098bb.PNG)

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 26, 2014, 5:48pm UTC](https://forum.inductiveautomation.com/t/check-for-vertical-scroll-bar/9387/2 "2014-11-26T17:48:36Z")

</div>

You can turn it on through scripting.  
Don’t know how you populate your table, but for example putting this in a propertyChange script:

`if propertyName=="data":
  t=event.source.parent.getComponent('Power Table')
  t.setVerticalScrollBarPolicy(t.VERTICAL_SCROLLBAR_ALWAYS)`
