# Support for window.getComputedStyle

**URL:** <https://forums.creativeclouddeveloper.com/t/support-for-window-getcomputedstyle/1990>\
**Category:** UXP Plugin API\
**Tags:** ui, feature-request, api-feedback\
**Created:** [September 1, 2020, 3:52am UTC](https://forums.creativeclouddeveloper.com/t/support-for-window-getcomputedstyle/1990 "2020-09-01T03:52:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![plugisto](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/plugisto/32/1184_2.png) [@plugisto](https://forums.creativeclouddeveloper.com/u/plugisto)\
**Post date:** [September 1, 2020, 3:52am UTC](https://forums.creativeclouddeveloper.com/t/support-for-window-getcomputedstyle/1990/1 "2020-09-01T03:52:56Z")

</div>

I have seen several posts that need indirectly support for `getComputedStyle`. I am at the same point but I haven’t found a direct feature request for it. So here it is.  
And, what is the information regarding this? Are there any plans to support it?

---

<div class="post-metadata">

**Author:** ![pklaschka](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pklaschka/32/3162_2.png) [@pklaschka](https://forums.creativeclouddeveloper.com/u/pklaschka)\
**Post date:** [September 1, 2020, 9:26am UTC](https://forums.creativeclouddeveloper.com/t/support-for-window-getcomputedstyle/1990/2 "2020-09-01T09:26:00Z")

</div>

I hope you don’t mind: I have moved this into the Plugin API Feedback Feature Request section so that other developers can vote for this feature 🙂

Also: May I ask if you could provide any references, use-cases or other details on why you need this feature?

---

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [September 2, 2020, 11:00pm UTC](https://forums.creativeclouddeveloper.com/t/support-for-window-getcomputedstyle/1990/3 "2020-09-02T23:00:23Z")

</div>

Use cases help the UXP team determine support for the API.

There are a few plugin authors including myself that have a few use cases and related feature request… although it’s not explicitly for getComputedStyle the issues mentioned would be solved by it.

> [@Determine the panel width or any elements actual width](http://forums.creativeclouddeveloper.com/t/determine-the-panel-width-or-any-elements-actual-width/1036):
>
> Is there any solid way to determine the panel width or any DOM element’s actual width without window.getComputedStyle, element.clientHeight or element.getBoundingClientRect? None of the following is returning something useful: console.log(document.documentElement.clientHeight); console.log(document.documentElement.offsetWidth); console.log(document.documentElement.scrollWidth); console.log(window.innerHeight); console.log(document.body.clientWidth); console.log(document…

---

<div class="post-metadata">

**Author:** ![plugisto](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/plugisto/32/1184_2.png) [@plugisto](https://forums.creativeclouddeveloper.com/u/plugisto)\
**Post date:** [September 8, 2020, 3:40am UTC](https://forums.creativeclouddeveloper.com/t/support-for-window-getcomputedstyle/1990/4 "2020-09-08T03:40:13Z")

</div>

For my panel I wanted to use popper.js.  
Also tried to use Element UI (especially their color picker). Both did not work because of getComputedStyle. After some search here in the forums I saw that other people could use that, too.
