# Suppressing "width in percentage mode inside a horizontal StackPanel" warning?

**URL:** <https://forum.babylonjs.com/t/suppressing-width-in-percentage-mode-inside-a-horizontal-stackpanel-warning/8315>\
**Category:** Questions\
**Created:** [January 30, 2020, 7:07am UTC](https://forum.babylonjs.com/t/suppressing-width-in-percentage-mode-inside-a-horizontal-stackpanel-warning/8315 "2020-01-30T07:07:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![i73](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/i73/32/3167_2.png) [@i73](https://forum.babylonjs.com/u/i73)\
**Post date:** [January 30, 2020, 7:07am UTC](https://forum.babylonjs.com/t/suppressing-width-in-percentage-mode-inside-a-horizontal-stackpanel-warning/8315/1 "2020-01-30T07:07:45Z")

</div>

I’m looking to suppress the warnings:  
`BJS - []: Control (Name:undefined, UniqueId:1036) is using width in percentage mode inside a horizontal StackPanel`

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [January 30, 2020, 8:00am UTC](https://forum.babylonjs.com/t/suppressing-width-in-percentage-mode-inside-a-horizontal-stackpanel-warning/8315/2 "2020-01-30T08:00:52Z")

</div>

Close the console 🙂

If you are actually doing this, the warning will show. if you are not, or not sure what you are doing to cause this, show us a playground, we might be able to help further.

We sadly can’t quite help with no context

---

<div class="post-metadata">

**Author:** ![i73](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/i73/32/3167_2.png) [@i73](https://forum.babylonjs.com/u/i73)\
**Post date:** [January 30, 2020, 8:20am UTC](https://forum.babylonjs.com/t/suppressing-width-in-percentage-mode-inside-a-horizontal-stackpanel-warning/8315/3 "2020-01-30T08:20:34Z")

</div>

It’s a UI Warning for having an element without a width in a stack panel, I can’t change my current feature and I want to save resources on the console log, so I’m sure there’s a way to suppress warnings. Just need to know how.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [January 30, 2020, 8:26am UTC](https://forum.babylonjs.com/t/suppressing-width-in-percentage-mode-inside-a-horizontal-stackpanel-warning/8315/4 "2020-01-30T08:26:45Z")

</div>

You can set the logger level to Error

```javascript
BABYLON.Logger.LogLevels(BABYLON.Logger.ErrorLogLevel)

```

---

<div class="post-metadata">

**Author:** ![kvasss](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kvasss/32/3774_2.png) [@kvasss](https://forum.babylonjs.com/u/kvasss)\
**Post date:** [January 30, 2020, 10:11am UTC](https://forum.babylonjs.com/t/suppressing-width-in-percentage-mode-inside-a-horizontal-stackpanel-warning/8315/5 "2020-01-30T10:11:19Z")

</div>

just don’t use percentage inside stackpanel) if you take names for all ui elements you can catch name with problem element. or you can use inspector an look where this element in gui section and set fixed size… and test test test em all)))
