# Height set up not working anymore

**URL:** <https://forum.lottiefiles.com/t/height-set-up-not-working-anymore/1682>\
**Category:** Lottie in Web\
**Created:** [October 25, 2021, 6:43pm UTC](https://forum.lottiefiles.com/t/height-set-up-not-working-anymore/1682 "2021-10-25T18:43:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lauriane](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/lauriane/32/224_2.png) [@lauriane](https://forum.lottiefiles.com/u/lauriane)\
**Post date:** [October 25, 2021, 6:43pm UTC](https://forum.lottiefiles.com/t/height-set-up-not-working-anymore/1682/1 "2021-10-25T18:43:14Z")

</div>

Super weird. Everything worked just as fine but some days ago, I can’t set up the height anymore. Even if I insert the lottiefile-player inside a div.  
Was there a new update of LottieFiles ?

---

<div class="post-metadata">

**Author:** ![leo2710](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/leo2710/32/1177_2.png) [@leo2710](https://forum.lottiefiles.com/u/leo2710)\
**Post date:** [October 26, 2021, 3:00pm UTC](https://forum.lottiefiles.com/t/height-set-up-not-working-anymore/1682/2 "2021-10-26T15:00:45Z")

</div>

I found similar cases, the sizes of my icons are uncontrollable, all are scaled down… so frustrated

---

<div class="post-metadata">

**Author:** ![karam7898](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/karam7898/32/1178_2.png) [@karam7898](https://forum.lottiefiles.com/u/karam7898)\
**Post date:** [October 27, 2021, 3:58am UTC](https://forum.lottiefiles.com/t/height-set-up-not-working-anymore/1682/3 "2021-10-27T03:58:28Z")

</div>

hi @leo2710 @lauriane . I maintain the Lottie Player repo. Which version of the player are you using. there were some bugs with 1.4.2 and 1.4.3. I did push out an update 1.4.4 to fix the height issues. and also may i know whether you are using percentages or pixels or viewheight to set the height? It would help if i can get some details on how you are setting the height thank you

---

<div class="post-metadata">

**Author:** ![leo2710](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/leo2710/32/1177_2.png) [@leo2710](https://forum.lottiefiles.com/u/leo2710)\
**Post date:** [October 27, 2021, 4:53am UTC](https://forum.lottiefiles.com/t/height-set-up-not-working-anymore/1682/4 "2021-10-27T04:53:34Z")

</div>

hi, karam7898, the sizes are being normal now. i am using pixels to set height.  
thank you

---

<div class="post-metadata">

**Author:** ![lauriane](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/lauriane/32/224_2.png) [@lauriane](https://forum.lottiefiles.com/u/lauriane)\
**Post date:** [October 27, 2021, 9:16am UTC](https://forum.lottiefiles.com/t/height-set-up-not-working-anymore/1682/5 "2021-10-27T09:16:12Z")

</div>

Perfect thanks ! I am using pixel as well. I found out that it was kinda a problem with the height inheritance on the .animation class after the #shadow-root. Is that right ?

---

<div class="post-metadata">

**Author:** ![karam7898](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/karam7898/32/1178_2.png) [@karam7898](https://forum.lottiefiles.com/u/karam7898)\
**Post date:** [October 27, 2021, 10:18am UTC](https://forum.lottiefiles.com/t/height-set-up-not-working-anymore/1682/6 "2021-10-27T10:18:39Z")

</div>

yup @lauriane . basically the .animation class deducts the height of the animation by 35px(the height of the controls) its only supposed to come into effect if the user enables controls. Just adding .animation.controls was the fix. Good eye
