# I don’t know how to fill in the third parameter of uxp resizeCanvas

**URL:** <https://forums.creativeclouddeveloper.com/t/i-don-t-know-how-to-fill-in-the-third-parameter-of-uxp-resizecanvas/2902>\
**Category:** UXP Plugin API\
**Created:** [May 4, 2021, 8:38am UTC](https://forums.creativeclouddeveloper.com/t/i-don-t-know-how-to-fill-in-the-third-parameter-of-uxp-resizecanvas/2902 "2021-05-04T08:38:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zyyclove](https://avatars.discourse-cdn.com/v4/letter/z/ad7895/32.png) [@zyyclove](https://forums.creativeclouddeveloper.com/u/zyyclove)\
**Post date:** [May 4, 2021, 8:38am UTC](https://forums.creativeclouddeveloper.com/t/i-don-t-know-how-to-fill-in-the-third-parameter-of-uxp-resizecanvas/2902/1 "2021-05-04T08:38:13Z")

</div>

I want to press ExtendScript to expand the canvas size to the top, but I can’t achieve the desired result through UXP’s DOM.

ExtendScript：app.activeDocument.resizeCanvas(activeDocument.width,activeDocument.height+225,AnchorPosition.BOTTOMLEFT)  
UXP: await doc.resizeCanvas(doc.width,doc.height+225,{AnchorPosition:"[top/middle/bottom]-[left/center/right]"})

---

<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:** [May 4, 2021, 2:51pm UTC](https://forums.creativeclouddeveloper.com/t/i-don-t-know-how-to-fill-in-the-third-parameter-of-uxp-resizecanvas/2902/2 "2021-05-04T14:51:02Z")

</div>

Based on the docs, I believe it’s just a string.

```auto
doc.resizeCanvas(200,200,"top-right");

```
