# Why creating a Text Element places outside of artboard

**URL:** <https://forums.creativeclouddeveloper.com/t/why-creating-a-text-element-places-outside-of-artboard/371>\
**Category:** UXP Plugin API\
**Created:** [November 6, 2018, 11:47pm UTC](https://forums.creativeclouddeveloper.com/t/why-creating-a-text-element-places-outside-of-artboard/371 "2018-11-06T23:47:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PramUkesh](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pramukesh/32/102_2.png) [@PramUkesh](https://forums.creativeclouddeveloper.com/u/PramUkesh)\
**Post date:** [November 6, 2018, 11:47pm UTC](https://forums.creativeclouddeveloper.com/t/why-creating-a-text-element-places-outside-of-artboard/371/1 "2018-11-06T23:47:36Z")

</div>

When creating a Text element through API

it always puts text outside of Artboard  
why this is applied in API

even with x,y axis provided to move the created element it always has different output position  
Why this is intentional

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [November 7, 2018, 3:23pm UTC](https://forums.creativeclouddeveloper.com/t/why-creating-a-text-element-places-outside-of-artboard/371/2 "2018-11-07T15:23:40Z")

</div>

Hi @PramUkesh,

That’s because the default X,Y coordinates of the inserted text is (0,0) which is the top left corner of the current artboard. Could you explain what you mean by “it always has different output position”? Some examples would be helpful. Thank you!

---

<div class="post-metadata">

**Author:** ![PramUkesh](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pramukesh/32/102_2.png) [@PramUkesh](https://forums.creativeclouddeveloper.com/u/PramUkesh)\
**Post date:** [November 9, 2018, 4:14pm UTC](https://forums.creativeclouddeveloper.com/t/why-creating-a-text-element-places-outside-of-artboard/371/3 "2018-11-09T16:14:31Z")

</div>

![2018-11-09_21-37-35](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/1X/2249b8d9df2045b6242a9afbb5f2404c88695a9b.gif)

this is the problem it is not placing at (0,0) see the y position it is placed at y position -26  
even we use move api it is not moving to position we provided  
`txt.moveInParentCoordinates(100, 100);`  
places text in different position.

 ![2018-11-09_21-42-34](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/1X/a064884b9d417cb9de0a3acf9967695836a2fd70.gif)

I was using windows 10 pro april update version

---

<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:** [November 9, 2018, 4:29pm UTC](https://forums.creativeclouddeveloper.com/t/why-creating-a-text-element-places-outside-of-artboard/371/4 "2018-11-09T16:29:14Z")

</div>

Try using `placeInParentCoordinates` – `move*` will just move by a delta, but you’re not placing at an explicit location.

I believe the text node itself is being positioned based on the baseline, not the top, so you’ll need to account for that.

---

<div class="post-metadata">

**Author:** ![PramUkesh](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pramukesh/32/102_2.png) [@PramUkesh](https://forums.creativeclouddeveloper.com/u/PramUkesh)\
**Post date:** [November 9, 2018, 4:46pm UTC](https://forums.creativeclouddeveloper.com/t/why-creating-a-text-element-places-outside-of-artboard/371/5 "2018-11-09T16:46:09Z")

</div>

@kerrishotts ok move api is different and leave that why creating text element behaves like in first screenshot
