# Popover not working?

**URL:** <https://forums.creativeclouddeveloper.com/t/popover-not-working/8835>\
**Category:** InDesign\
**Tags:** ui, uxp\
**Created:** [December 10, 2024, 9:10am UTC](https://forums.creativeclouddeveloper.com/t/popover-not-working/8835 "2024-12-10T09:10:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![philipbuckley](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@philipbuckley](https://forums.creativeclouddeveloper.com/u/philipbuckley)\
**Post date:** [December 10, 2024, 1:59pm UTC](https://forums.creativeclouddeveloper.com/t/popover-not-working/8835/2 "2024-12-10T13:59:10Z")

</div>

The code I offered in this thread (based on the code of others, I hasten to add) fundamentally works:

[https://forums.creativeclouddeveloper.com/t/sp-menu-backround-clipping/7693/7](https://forums.creativeclouddeveloper.com/t/sp-menu-backround-clipping/7693/7)

Revisiting it just now (I thought I had better check the code still worked), it may be that you can’t use an `sp-menu` and `sp-menu-items` within the sp-popover because the text in the sp-menu-item does seem to be clipped to the panel edge (or it needs some extra css to work), but the popover is definitely extending beyond the bounds of the panel edge (which is what you have asked for), as you can see when the sp-popover contains this crude code:

```auto
<div style="background-color: grey">
	<div style="color:white; font-size:12px; padding:4px">Do something</div>
	<div style="color:white; font-size:12px; padding:4px">Do something else</div>
	<div style="color:white; font-size:12px; padding:4px">Do a third thing</div>
</div>

```

resulting in this:

 ![Screenshot 2024-12-10 at 13.24.33](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/2/25593cea5498bf312c059c216ee60f00abea62e9.png)

I’ll be interested if you find a way to have a context menu popup where the mouse has been clicked in the panel.

Philip

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/popover-not-working/8835)._
