# Confirmation dialog style on one-stop button

**URL:** <https://forum.inductiveautomation.com/t/confirmation-dialog-style-on-one-stop-button/68370>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 9, 2023, 1:49pm UTC](https://forum.inductiveautomation.com/t/confirmation-dialog-style-on-one-stop-button/68370 "2023-01-09T13:49:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henry\_Neves-Charge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/henry_neves-charge/32/41949_2.png) [@Henry\_Neves-Charge](https://forum.inductiveautomation.com/u/Henry_Neves-Charge)\
**Post date:** [January 9, 2023, 1:49pm UTC](https://forum.inductiveautomation.com/t/confirmation-dialog-style-on-one-stop-button/68370/1 "2023-01-09T13:49:16Z")

</div>

I have two buttons "power off" and "power on" which are "one-stop" types. On one of them "power off" the confirmation dialog appears as a modal-type dialog, taking up the entire screen with a black background. On the other "power on" it appears as a tooltip-style near the button. I am not sure where this is configured and as far as I'm aware they should have the same behaviour, as I haven't configured it anywhere and one is a copy of the other. I would prefer the modal-type for both, or at least have them consistent.

Thanks!

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 9, 2023, 5:11pm UTC](https://forum.inductiveautomation.com/t/confirmation-dialog-style-on-one-stop-button/68370/2 "2023-01-09T17:11:50Z")

</div>

The determination as to whether or not to display as a modal is made based on the available area _immediately surrounding the One-Shot Button_. I suspect the instance you have which opens the modal is near the edge of the viewport and is probably smaller than the default size.

If I recall correctly, the confirmation popover requires about 80px of space above or below the originating One-Shot Button, as well as approximately 65px of space to the left and right of the center of the One-Shot Button. If either of those conditions are not met, the popover opens as a modal instead. So if your One-Shot Button is near any of the edges, and is less than 130px wide, you'll likely see the modal instead of the popover.

---

<div class="post-metadata">

**Author:** ![Henry\_Neves-Charge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/henry_neves-charge/32/41949_2.png) [@Henry\_Neves-Charge](https://forum.inductiveautomation.com/u/Henry_Neves-Charge)\
**Post date:** [January 9, 2023, 6:42pm UTC](https://forum.inductiveautomation.com/t/confirmation-dialog-style-on-one-stop-button/68370/3 "2023-01-09T18:42:14Z")

</div>

Ah OK yep spot on - One of the buttons is at the bottom of the page.

Any way to enforce the modal behaviour?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 9, 2023, 6:55pm UTC](https://forum.inductiveautomation.com/t/confirmation-dialog-style-on-one-stop-button/68370/4 "2023-01-09T18:55:33Z")

</div>

> [@Henry\_Neves-Charge](#):
>
> Any way to enforce the modal behaviour?

Yes. Place your One Shot buttons against the edge of the screen and make them small. That's it - there is no configuration available to "force" the modal state because it's a responsive behavior.

---

<div class="post-metadata">

**Author:** ![Henry\_Neves-Charge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/henry_neves-charge/32/41949_2.png) [@Henry\_Neves-Charge](https://forum.inductiveautomation.com/u/Henry_Neves-Charge)\
**Post date:** [January 9, 2023, 8:13pm UTC](https://forum.inductiveautomation.com/t/confirmation-dialog-style-on-one-stop-button/68370/5 "2023-01-09T20:13:09Z")

</div>

Ah, OK thanks. I'll have to think of another solution.
