# Inspector windows is not displaying correctly

**URL:** <https://forum.babylonjs.com/t/inspector-windows-is-not-displaying-correctly/14828>\
**Category:** Bugs\
**Tags:** gui\
**Created:** [October 11, 2020, 12:18pm UTC](https://forum.babylonjs.com/t/inspector-windows-is-not-displaying-correctly/14828 "2020-10-11T12:18:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishna\_Kishore](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/krishna_kishore/32/3682_2.png) [@Krishna\_Kishore](https://forum.babylonjs.com/u/Krishna_Kishore)\
**Post date:** [October 11, 2020, 12:18pm UTC](https://forum.babylonjs.com/t/inspector-windows-is-not-displaying-correctly/14828/1 "2020-10-11T12:18:31Z")

</div>

i have application with the babylonjs and react, when i open inspector in the application, it is not displaying correctly. and also some of the properties are not displaying correctly

please see the screen shot

 ![error](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/5/5385564ea0c38f33d96320a6aae5c6dcd70809d6.jpeg)

---

<div class="post-metadata">

**Author:** ![Krishna\_Kishore](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/krishna_kishore/32/3682_2.png) [@Krishna\_Kishore](https://forum.babylonjs.com/u/Krishna_Kishore)\
**Post date:** [October 11, 2020, 12:21pm UTC](https://forum.babylonjs.com/t/inspector-windows-is-not-displaying-correctly/14828/2 "2020-10-11T12:21:31Z")

</div>

![error2](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/d/dcda509e834fae91dc1b063c34a089a3b99be0c1.png)

---

<div class="post-metadata">

**Author:** ![jason.spafford](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jason.spafford/32/8972_2.png) [@jason.spafford](https://forum.babylonjs.com/u/jason.spafford)\
**Post date:** [October 11, 2020, 7:39pm UTC](https://forum.babylonjs.com/t/inspector-windows-is-not-displaying-correctly/14828/3 "2020-10-11T19:39:29Z")

</div>

This doesn’t have anything to do with Babylon, your CSS is overriding styling used by Babylon. You may need to set styling explicitly to get it to work. I had this issue with my react app as well.

---

<div class="post-metadata">

**Author:** ![nogalo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nogalo/32/120_2.png) [@nogalo](https://forum.babylonjs.com/u/nogalo)\
**Post date:** [October 11, 2020, 8:25pm UTC](https://forum.babylonjs.com/t/inspector-windows-is-not-displaying-correctly/14828/4 "2020-10-11T20:25:59Z")

</div>

I always start my projects with this

#scene-explorer-host{  
z-index: 1000 !important;  
position: absolute !important;  
}

#inspector-host{  
z-index: 1000 !important;  
position: absolute !important;  
}

---

<div class="post-metadata">

**Author:** ![nogalo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nogalo/32/120_2.png) [@nogalo](https://forum.babylonjs.com/u/nogalo)\
**Post date:** [October 11, 2020, 8:41pm UTC](https://forum.babylonjs.com/t/inspector-windows-is-not-displaying-correctly/14828/5 "2020-10-11T20:41:58Z")

</div>

But these errors are not connected to the actual styling (I think).

The toFixed() method converts a number into a string, rounding to a specified number of decimals.

I had this before (and I didn’t solve it). And it happen when I set some values myself (like values for material properties, metallic, roughness, specularPower and so on).

So with that said, I think that in my case, when I am setting something from slider I’ve built in the app, I am actually setting property to string (so like, setting material.roughness = “0.57”). And (string).toFixed is not possible, as toFixed needs number input, and when it gets string, you get “toFixed is not a function”.

You can see that here (lines 26-30);  
[https://www.babylonjs-playground.com/#BCXKBP#1](https://www.babylonjs-playground.com/#BCXKBP#1)

So if you are setting something yourself in the app, check the types of the inputs you are giving. I think that actually in the scene itself, this is not a problem, as it somehow converts/reads “0.57” as number and you can see the effect of your setting in the scene. But for inspector .toFixed is called, and that makes it crash (and I think that your inspector get’s lost and you need to refresh the app to see inspector again properly).
