# Power Table Column Width Blues

**URL:** <https://forum.inductiveautomation.com/t/power-table-column-width-blues/33171>\
**Category:** Ignition\
**Created:** [March 17, 2020, 4:47pm UTC](https://forum.inductiveautomation.com/t/power-table-column-width-blues/33171 "2020-03-17T16:47:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![twstevic](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@twstevic](https://forum.inductiveautomation.com/u/twstevic)\
**Post date:** [March 17, 2020, 4:47pm UTC](https://forum.inductiveautomation.com/t/power-table-column-width-blues/33171/1 "2020-03-17T16:47:47Z")

</div>

I have a power table that has 9 columns that need sizing. My goal is to get the width of the monitor the project is running on and scale the columns based upon the width of the screen. Column 0 needs to be 16px wide (for an icon), column 1 needs to be (width/9 x 2). The remaining column widths are (width/9).

I have looked at previous topics, but they seem to just auto-resize. Can anyone point me in the right direction?

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [March 17, 2020, 6:59pm UTC](https://forum.inductiveautomation.com/t/power-table-column-width-blues/33171/2 "2020-03-17T18:59:25Z")

</div>

I usually create a custom method on the table called colWidth  
And put something like this code in it

```auto
	tab = self
	w = tab.width
	tab.setColumnWidth(0,(w/9)*2)
	tab.setColumnWidth(1,w/9)
	tab.setColumnWidth(2,w/9)
	tab.setColumnWidth(3,w/9)
	tab.setColumnWidth(4,w/9)

```

Then I put self.colWidth() in the configureEditor Extension function.

---

<div class="post-metadata">

**Author:** ![twstevic](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@twstevic](https://forum.inductiveautomation.com/u/twstevic)\
**Post date:** [March 18, 2020, 4:16pm UTC](https://forum.inductiveautomation.com/t/power-table-column-width-blues/33171/3 "2020-03-18T16:16:09Z")

</div>

Excellent. Exactly what I was trying to do. Thank you **MMayynardUSG**
