# \[BUG\] Perspective flex "auto" not behaving as expected with icon and svg

**URL:** <https://forum.inductiveautomation.com/t/bug-perspective-flex-auto-not-behaving-as-expected-with-icon-and-svg/56604>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 28, 2022, 1:26am UTC](https://forum.inductiveautomation.com/t/bug-perspective-flex-auto-not-behaving-as-expected-with-icon-and-svg/56604 "2022-02-28T01:26:24Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [March 28, 2022, 9:04am UTC](https://forum.inductiveautomation.com/t/bug-perspective-flex-auto-not-behaving-as-expected-with-icon-and-svg/56604/15 "2022-03-28T09:04:18Z")

</div>

So i ran against this problem myself the other day, but in a tottaly different situation with one of my custom components. So i put on some javascript to debug and it seems like the svgs are doing weird things with their width in flex containers. This seems to be a browser issue, not ignitions fault.

**You can fix it by putting a width in the style of the svg/icon!**

@nminchin  
i just tested it out on the example you once send and it seems to work for this too  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/a/ca61ad822def958c436228315281233a3bbfb2ba.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/9/c903c821719b47d328b6626dd8904427f1f7bf6a.png)  
adding a width to the embedded container with the icon works too for the “too wide” thing  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/c/6c9168596a63d76fe6a90cc9a8238ca7edf38bc3.png)  
in flex repeater with wrap, which was what you wanted?:

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

@richardNZ15 it probably should work for you too

---

_[View the full topic](https://forum.inductiveautomation.com/t/bug-perspective-flex-auto-not-behaving-as-expected-with-icon-and-svg/56604)._
