# \[BUG\] Table column width not being respected

**URL:** <https://forum.inductiveautomation.com/t/bug-table-column-width-not-being-respected/26769>\
**Category:** Ignition Early Access\
**Tags:** perspective\
**Created:** [July 22, 2019, 7:22pm UTC](https://forum.inductiveautomation.com/t/bug-table-column-width-not-being-respected/26769 "2019-07-22T19:22:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![md.szyman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/md.szyman/32/9240_2.png) [@md.szyman](https://forum.inductiveautomation.com/u/md.szyman)\
**Post date:** [July 22, 2019, 7:22pm UTC](https://forum.inductiveautomation.com/t/bug-table-column-width-not-being-respected/26769/1 "2019-07-22T19:22:33Z")

</div>

I have a Perspective table with columns having `width` and `strictWidth` properties set. In the designer it appears how I want it to, but in the browser it isn’t respecting the width setting.

Designer:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/2c389c4b57ae11a26ef89e0aaa7cf7fdd75fc7cf.png)

Browser:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/0a02be1ee14b797fbb119f90056c61030d992a9e.png)

---

<div class="post-metadata">

**Author:** ![ynejati](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ynejati/32/6093_2.png) [@ynejati](https://forum.inductiveautomation.com/u/ynejati)\
**Post date:** [July 22, 2019, 7:30pm UTC](https://forum.inductiveautomation.com/t/bug-table-column-width-not-being-respected/26769/2 "2019-07-22T19:30:08Z")

</div>

Hi,

What browser is your Perspective client session using?

-Yousuf

---

<div class="post-metadata">

**Author:** ![md.szyman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/md.szyman/32/9240_2.png) [@md.szyman](https://forum.inductiveautomation.com/u/md.szyman)\
**Post date:** [July 22, 2019, 7:30pm UTC](https://forum.inductiveautomation.com/t/bug-table-column-width-not-being-respected/26769/3 "2019-07-22T19:30:23Z")

</div>

The latest version of Google Chrome

---

<div class="post-metadata">

**Author:** ![ynejati](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ynejati/32/6093_2.png) [@ynejati](https://forum.inductiveautomation.com/u/ynejati)\
**Post date:** [July 22, 2019, 7:33pm UTC](https://forum.inductiveautomation.com/t/bug-table-column-width-not-being-respected/26769/4 "2019-07-22T19:33:57Z")

</div>

That’s very odd. Are you able to replicate this with the example data? If so, what are the steps?

-Yousuf

---

<div class="post-metadata">

**Author:** ![md.szyman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/md.szyman/32/9240_2.png) [@md.szyman](https://forum.inductiveautomation.com/u/md.szyman)\
**Post date:** [July 22, 2019, 7:41pm UTC](https://forum.inductiveautomation.com/t/bug-table-column-width-not-being-respected/26769/5 "2019-07-22T19:41:39Z")

</div>

Well uh.

I dunno why this fixed it, but I added the sample data table and set it up how I had the other one, and I couldn’t reproduce it.

Then I got rid of the old table and replaced the sample data with the data I need, and it’s working fine now.

No clue why it stopped happening, but I’ll mark it as solved and post again if the issue comes up and I’m better able to isolate what’s causing it.

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![ynejati](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ynejati/32/6093_2.png) [@ynejati](https://forum.inductiveautomation.com/u/ynejati)\
**Post date:** [July 22, 2019, 7:46pm UTC](https://forum.inductiveautomation.com/t/bug-table-column-width-not-being-respected/26769/6 "2019-07-22T19:46:02Z")

</div>

That’s a head scratcher. Glad it worked. Let me know if it happens again. -Yousuf

---

<div class="post-metadata">

**Author:** ![rachel](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@rachel](https://forum.inductiveautomation.com/u/rachel)\
**Post date:** [November 5, 2020, 8:20pm UTC](https://forum.inductiveautomation.com/t/bug-table-column-width-not-being-respected/26769/7 "2020-11-05T20:20:37Z")

</div>

I am now experiencing this issue in 8.1.0. Whenever I launch preview mode in the designer, the columns of the table snap to flex, ignoring the strict width I’ve set.

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [December 7, 2020, 4:18pm UTC](https://forum.inductiveautomation.com/t/bug-table-column-width-not-being-respected/26769/8 "2020-12-07T16:18:14Z")

</div>

Any updates? Also experiencing this issue. Have an expression structure and transform generating a dataset, but the table in the browser and in preview mode aren’t respecting the width property.

---

<div class="post-metadata">

**Author:** ![matthew.gollasch](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matthew.gollasch/32/26382_2.png) [@matthew.gollasch](https://forum.inductiveautomation.com/u/matthew.gollasch)\
**Post date:** [August 4, 2021, 6:20am UTC](https://forum.inductiveautomation.com/t/bug-table-column-width-not-being-respected/26769/9 "2021-08-04T06:20:05Z")

</div>

I would also like a follow up on this issue as well if possible. I am experiencing a similar problem.

---

<div class="post-metadata">

**Author:** ![kyle.demerath](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kyle.demerath](https://forum.inductiveautomation.com/u/kyle.demerath)\
**Post date:** [August 26, 2021, 5:44pm UTC](https://forum.inductiveautomation.com/t/bug-table-column-width-not-being-respected/26769/10 "2021-08-26T17:44:17Z")

</div>

I am seeing a similar issue, but it seems to stem from the opening and closing of a subview. I have multiple tables, some of which are setup very very similarly and not all of them exhibit this behavior but it is repeatable for given ones. Every time the sub view is opened it appears the columns add a little to the width (causing a lot of word wrap on the far right column). When I close the subview they again have some width added. This is happening on columns that are set to strictWidth as well as those that are not. I first started noticing this on 8.1.9 (I think we had been on 8.1.7 w/o issue).

---

<div class="post-metadata">

**Author:** ![Alex\_Fang](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@Alex\_Fang](https://forum.inductiveautomation.com/u/Alex_Fang)\
**Post date:** [August 18, 2023, 2:16pm UTC](https://forum.inductiveautomation.com/t/bug-table-column-width-not-being-respected/26769/11 "2023-08-18T14:16:24Z")

</div>

I faced this issue and I realized it was because I was passing the column width as a string via script. I changed the value passed to column width to an integer and my issues are gone.
