# Get Screen Width

**URL:** <https://forums.creativeclouddeveloper.com/t/get-screen-width/2877>\
**Category:** Adobe XD\
**Created:** [April 28, 2021, 1:10pm UTC](https://forums.creativeclouddeveloper.com/t/get-screen-width/2877 "2021-04-28T13:10:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adinu](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@adinu](https://forums.creativeclouddeveloper.com/u/adinu)\
**Post date:** [April 28, 2021, 1:10pm UTC](https://forums.creativeclouddeveloper.com/t/get-screen-width/2877/1 "2021-04-28T13:10:44Z")

</div>

Hi,

is there a way to get the plugin screen width? thanks

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [April 28, 2021, 9:58pm UTC](https://forums.creativeclouddeveloper.com/t/get-screen-width/2877/2 "2021-04-28T21:58:21Z")

</div>

Do you mean the panel width or the actual screen width? You can measure panel width on `resize` event; but screen width is not something that’s available to plugins currently.

---

<div class="post-metadata">

**Author:** ![adinu](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@adinu](https://forums.creativeclouddeveloper.com/u/adinu)\
**Post date:** [April 29, 2021, 6:28am UTC](https://forums.creativeclouddeveloper.com/t/get-screen-width/2877/3 "2021-04-29T06:28:06Z")

</div>

i meant the whole screen width. thanks for the info

---

<div class="post-metadata">

**Author:** ![mightyalex](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/mightyalex/32/777_2.png) [@mightyalex](https://forums.creativeclouddeveloper.com/u/mightyalex)\
**Post date:** [May 1, 2021, 6:04pm UTC](https://forums.creativeclouddeveloper.com/t/get-screen-width/2877/4 "2021-05-01T18:04:53Z")

</div>

If you need width of `RootNode` ([parent](http://forums.creativeclouddeveloper.com/t/is-there-an-official-name-of-the-artboards-area/552) of the arboards) it’s [50000px](http://forums.creativeclouddeveloper.com/t/rootnode-width-and-height/2387/3).

If you need `viewport`'s width see this [viewport · Adobe XD Plugin Reference](https://adobexdplatform.com/plugin-docs/reference/viewport.html), you can get it with `viewport.bounds.width`.
