# Selection Size for a Modal Trigger

**URL:** <https://forums.realmacsoftware.com/t/selection-size-for-a-modal-trigger/47646>\
**Category:** Elements\
**Created:** [May 19, 2025, 4:18pm UTC](https://forums.realmacsoftware.com/t/selection-size-for-a-modal-trigger/47646 "2025-05-19T16:18:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [May 19, 2025, 4:18pm UTC](https://forums.realmacsoftware.com/t/selection-size-for-a-modal-trigger/47646/1 "2025-05-19T16:18:07Z")

</div>

@dan When I create a modal that uses a button as a trigger I try to select that button to control its placement. The selection extends to the full size of the container the trigger is in, which means I cannot position the trigger in the normal way, it is stuck in the center. See below.

 ![CleanShot 2025-05-19 at 06.12.47@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/7/8/78023df86ead60942289c4221654f9f8a1165eab.png)

Is this the expected behavior? I would think the selection should be the size of the trigger ( button in this case). This has caused me all kinds of consternation as I could not position the trigger as I wanted.

This reminds me of a similar problem I had with selecting SVG components.

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [May 19, 2025, 6:03pm UTC](https://forums.realmacsoftware.com/t/selection-size-for-a-modal-trigger/47646/2 "2025-05-19T18:03:08Z")

</div>

Try placing a container into the modal trigger first… does that solve it for you?

---

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [May 19, 2025, 6:32pm UTC](https://forums.realmacsoftware.com/t/selection-size-for-a-modal-trigger/47646/3 "2025-05-19T18:32:38Z")

</div>

@dan I already have a container inside the modal so that does not solve the problem. In fact, I have a bunch of content inside it and it is fully functional. I just can’t do any placement of the trigger due to the selection size.

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [May 19, 2025, 7:17pm UTC](https://forums.realmacsoftware.com/t/selection-size-for-a-modal-trigger/47646/4 "2025-05-19T19:17:53Z")

</div>

not sure this helps, or if I understand correctly, I placed in 2 flexs, although agree this should be the correct size by default?

---

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [May 19, 2025, 7:34pm UTC](https://forums.realmacsoftware.com/t/selection-size-for-a-modal-trigger/47646/5 "2025-05-19T19:34:27Z")

</div>

I’ll have to give that a try. I did try using a single flex but not two, thanks for the heads up.

Although I still think this is in need of fixing.

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [May 19, 2025, 7:36pm UTC](https://forums.realmacsoftware.com/t/selection-size-for-a-modal-trigger/47646/6 "2025-05-19T19:36:00Z")

</div>

Agree should be auto, if you set the flex to full you can use start and end etc and apply padding

---

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [May 19, 2025, 8:15pm UTC](https://forums.realmacsoftware.com/t/selection-size-for-a-modal-trigger/47646/7 "2025-05-19T20:15:36Z")

</div>

@upssjw Aloha Steve, that is exactly what I did and it works just fine allowing me to fix the jury rig I was using to get around the problem. Mahalo!
