# Removing the square (grey) artifact in the bottom-right corner

**URL:** <https://forums.creativeclouddeveloper.com/t/removing-the-square-grey-artifact-in-the-bottom-right-corner/2075>\
**Category:** UXP Plugin API\
**Tags:** ui, panel, user-interface\
**Created:** [October 21, 2020, 1:52am UTC](https://forums.creativeclouddeveloper.com/t/removing-the-square-grey-artifact-in-the-bottom-right-corner/2075 "2020-10-21T01:52:45Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [October 21, 2020, 1:52am UTC](https://forums.creativeclouddeveloper.com/t/removing-the-square-grey-artifact-in-the-bottom-right-corner/2075/1 "2020-10-21T01:52:45Z")

</div>

If you are developing a panel that is affected by a small grey rectangular artifact as demonstrated below:

 ![](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/1X/2b88bccb99f81ab4d9afe873c9855b26b361afb7.png)

…you can call the following API to hide it.

```auto
window.require('photoshop').core.suppressResizeGripper({"type": "panel", "target": <panelId>, "value": true})

```

where the panelId is the one defined in your `manifest.json` .

We are looking to make the described a more permanent ‘opt-in’ experience versus the runtime API, but the API is not slated to be removed any time soon.

(On behalf of Heewoo, one of the Ps extensibility engineers.)

---

<div class="post-metadata">

**Author:** ![simonhenke](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/simonhenke/32/957_2.png) [@simonhenke](https://forums.creativeclouddeveloper.com/u/simonhenke)\
**Post date:** [October 23, 2020, 12:42pm UTC](https://forums.creativeclouddeveloper.com/t/removing-the-square-grey-artifact-in-the-bottom-right-corner/2075/2 "2020-10-23T12:42:42Z")

</div>

Small tip for not having to hardcode the panelID (at least that’s how I did it to begin with):  
Depending on your setup, you might be able to import JSON files like  
`import manifest from '../uxp/manifest.json'`  
and access it via `manifest.entrypoints[0].id` in case of a single-panel-plugin (index 0).

This makes it much less prone to errors when changing the ID at a later point.

---

<div class="post-metadata">

**Author:** ![IanBarber](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IanBarber](https://forums.creativeclouddeveloper.com/u/IanBarber)\
**Post date:** [July 14, 2021, 2:28pm UTC](https://forums.creativeclouddeveloper.com/t/removing-the-square-grey-artifact-in-the-bottom-right-corner/2075/3 "2021-07-14T14:28:02Z")

</div>

I am struggling to remove this square from the bottom right corner.

In my index.js I have put

```auto
window.require('photoshop').core.suppressResizeGripper(
   {
   "type": "panel", 
   "target": "com.jdp.frames", 
   "value": true
   })

```

---

<div class="post-metadata">

**Author:** ![Pierre\_G](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pierre_g/32/971_2.png) [@Pierre\_G](https://forums.creativeclouddeveloper.com/u/Pierre_G)\
**Post date:** [July 14, 2021, 2:42pm UTC](https://forums.creativeclouddeveloper.com/t/removing-the-square-grey-artifact-in-the-bottom-right-corner/2075/4 "2021-07-14T14:42:01Z")

</div>

“target” has to be your panel id, specified in the Manifest under “entrypoints” 😉

---

<div class="post-metadata">

**Author:** ![IanBarber](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IanBarber](https://forums.creativeclouddeveloper.com/u/IanBarber)\
**Post date:** [July 14, 2021, 2:45pm UTC](https://forums.creativeclouddeveloper.com/t/removing-the-square-grey-artifact-in-the-bottom-right-corner/2075/5 "2021-07-14T14:45:21Z")

</div>

Thank You, Its all working again now 🙂
