# \[BUG-13632\] Perspective - Docked view modal fail

**URL:** <https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882>\
**Category:** Ignition Early Access\
**Created:** [May 10, 2019, 1:33pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882 "2019-05-10T13:33:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![alan\_pereira](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alan_pereira/32/79668_2.png) [@alan\_pereira](https://forum.inductiveautomation.com/u/alan_pereira)\
**Post date:** [May 10, 2019, 1:33pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/1 "2019-05-10T13:33:06Z")

</div>

I've been having issues with the modal option on docked views when they are triggered by a button. Sometimes they open as modal, sometimes they don't, it appears to be alternating.

Test scenario:

- Create a docked view, display: onDemand, content: cover, modal: true, handle: show (it shouldn't matter but mine was on the left)
- Create a main view with a button -\> set event script onClick -\> Dock -\> Open
- Try opening from the button and from the handle

Version: 1.02-SNAPSHOT (b2019051002)

---

<div class="post-metadata">

**Author:** ![awalker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awalker/32/6874_2.png) [@awalker](https://forum.inductiveautomation.com/u/awalker)\
**Post date:** [May 22, 2019, 10:09pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/2 "2019-05-22T22:09:06Z")

</div>

Thanks for the report, @alan_pereira. We have a ticket for this and will update you when its been fixed.

---

<div class="post-metadata">

**Author:** ![apgilber](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@apgilber](https://forum.inductiveautomation.com/u/apgilber)\
**Post date:** [July 25, 2019, 9:14pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/3 "2019-07-25T21:14:43Z")

</div>

Any update on timing for a fix on this one?

---

<div class="post-metadata">

**Author:** ![awalker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awalker/32/6874_2.png) [@awalker](https://forum.inductiveautomation.com/u/awalker)\
**Post date:** [July 25, 2019, 9:28pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/4 "2019-07-25T21:28:48Z")

</div>

Unfortunately, no. We are still considering this a low priority on our end for now. But I can definitely let you know when we get to it!

---

<div class="post-metadata">

**Author:** ![apgilber](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@apgilber](https://forum.inductiveautomation.com/u/apgilber)\
**Post date:** [July 26, 2019, 11:44am UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/5 "2019-07-26T11:44:50Z")

</div>

We have been testing a touch screen application and the current size of the on demand button is borderline unusable on our screens especially if the calibration is slightly off. With the inability to change the button size as well we wanted to throw a custom button to open and close the docks but the loss of modal really throws a wrench in the flow of our application. We could add a close button on the dock but I’d like to avoid it. Could we get the button size or this modal thing potentially moved up in the priority list?

---

<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:** [July 26, 2019, 1:44pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/6 "2019-07-26T13:44:47Z")

</div>

There is active work on designing UI for Docked View Handle customization but it’s in the Design phase, so I would not expect it before 8.0.4 at the earliest. 8.0.5 is much more likely.

Since the Modal issue requires less effort than the new UI, the modal issue is likely going to be fixed before the new UI process is complete.

Bumping the priority is unlikely as there are a number of factors which go into determining the priority of each issue, but there was a note added to the ticket that the issue is still active and receives regular inquiries.

---

<div class="post-metadata">

**Author:** ![apgilber](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@apgilber](https://forum.inductiveautomation.com/u/apgilber)\
**Post date:** [July 26, 2019, 1:49pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/7 "2019-07-26T13:49:06Z")

</div>

Sounds good. Thanks!

---

<div class="post-metadata">

**Author:** ![kyle.demerath](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kyle.demerath](https://forum.inductiveautomation.com/u/kyle.demerath)\
**Post date:** [November 27, 2019, 3:24pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/8 "2019-11-27T15:24:48Z")

</div>

Alternatively, if you could pass modal=True into system.perspective.openDock that could help with using the buttons. Not sure if that is an easier solution to this bug or not. Having the ability to make the handles bigger and look how we want (to replace a custom button) would be ideal though.

---

<div class="post-metadata">

**Author:** ![kyle.demerath](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kyle.demerath](https://forum.inductiveautomation.com/u/kyle.demerath)\
**Post date:** [January 24, 2020, 9:58pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/9 "2020-01-24T21:58:23Z")

</div>

Any update on this - either from a different handle or at least having the dock open in modal when fired from a button when its configured that way?

---

<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 24, 2020, 10:16pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/10 "2020-01-24T22:16:51Z")

</div>

I remember seeing end-stage design work, but we have not begun to implement the new UI for creating Docked Views which includes customization of the handle dimensions as well as a “modal” setting which allows for background dismissal.

As far as opening a Docked View in modal from a button click - that’s not something we’re looking into doing. The configuration of the Docked View is done in the Page Configuration (including the modal setting); opening/closing/toggling the Docked View gets no say in the configuration of the Docked View.

---

<div class="post-metadata">

**Author:** ![kyle.demerath](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kyle.demerath](https://forum.inductiveautomation.com/u/kyle.demerath)\
**Post date:** [January 27, 2020, 2:59pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/11 "2020-01-27T14:59:05Z")

</div>

> [@cmallonee](#):
>
> As far as opening a Docked View in modal from a button click - that’s not something we’re looking into doing. The configuration of the Docked View is done in the Page Configuration (including the modal setting); opening/closing/toggling the Docked View gets no say in the configuration of the Docked View.

This is fine, but I would expect that when I open a docked view from a button action it would obey the configuration from the Page Configuration, which I have set to modal. It does not do that and opens the dock without it being modal.

On a side note, is there anyway to reference what the dock that is set up for a page from the page configuration? Right now if I were to add a button on every view or page in my session I have to configure which dock to open on that action. It kind of renders the dock setup in the Page Configuration partly useless because I still have to put in the correct DockID on every action. If it was able to reference the Page Configuration it would be far easier to implement on every page.

---

<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 27, 2020, 3:26pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/12 "2020-01-27T15:26:25Z")

</div>

> [@kyle.demerath](#):
>
> This is fine, but I would expect that when I open a docked view from a button action it would obey the configuration from the Page Configuration, which I have set to modal. It does not do that and opens the dock without it being modal.

This is the description of the bug which was opened a long while ago, and that bug has not been resolved as of yet. This thread _should_ be updated when that happens.

> [@kyle.demerath](#):
>
> On a side note, is there anyway to reference what the dock that is set up for a page from the page configuration?

Unfortunately, no, because when you're working with a component, you are within a View. Views have absolutely no idea they will be used as a "Page", because there is every possibility that they will not be. Essentially, the View you are within knows ONLY about View properties, which include its children and any of their properties.

> [@kyle.demerath](#):
>
> Right now if I were to add a button on every view or page in my session I have to configure which dock to open on that action

Not entirely true - assuming these Views will all be opening the same Docked View; you could easily make a small View which contained ONLY the button you're looking to use for the action, and then each View would utilize an Embedded View, which supplies a path to the View which contains your button. Now you've configured the Action in one View only one time, and you have Embedded Views in each of your Views which point at that View.

---

<div class="post-metadata">

**Author:** ![kyle.demerath](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kyle.demerath](https://forum.inductiveautomation.com/u/kyle.demerath)\
**Post date:** [August 7, 2020, 2:42pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/13 "2020-08-07T14:42:34Z")

</div>

Any update on this? I know it may not be the highest priority, but its been a while for what seems like a pretty small fix.

---

<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:** [August 10, 2020, 6:19pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/14 "2020-08-10T18:19:16Z")

</div>

I’ll bring this ticket up next development cycle, but priority is the driving force which determines when we take a ticket on - not ease of effort.

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [August 17, 2020, 12:57pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/15 "2020-08-17T12:57:41Z")

</div>

I know there has been a few bugs/needs/wants in this thread, but Is the open bug in regards to the ability to have a modal docked view?

And if so, is there any workaround that you can think of?

---

<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:** [August 17, 2020, 5:10pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/16 "2020-08-17T17:10:03Z")

</div>

The original issue was regarding Docked Views which should open as a “modal”, but which fail to do so when opened/toggled as part of an Event. It looks to me that the modal setting is working correctly as long as you use the Docked View’s handle; it’s only Docked View Events or scripts which use `system.perspective.openDock()` or `toggleDock()` which have an issue.

So I guess the workaround is to only use the handles of the Docked View.

**Update:** Actually, it looks like if the Docked View is not the default 150px size we supply then the modal appearance is not working. I’ll update the ticket with this new info. So the NEW workaround is to only use the handles and ONLY use the default size.

---

<div class="post-metadata">

**Author:** ![gjack1978](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@gjack1978](https://forum.inductiveautomation.com/u/gjack1978)\
**Post date:** [November 20, 2020, 8:55pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/17 "2020-11-20T20:55:14Z")

</div>

Any update on this one? I just tried it in 8.1 and it still looks like its persisting.

---

<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:** [November 20, 2020, 8:57pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/18 "2020-11-20T20:57:52Z")

</div>

We will update this post when a fix is in place.

---

<div class="post-metadata">

**Author:** ![dkyerger](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkyerger/32/7423_2.png) [@dkyerger](https://forum.inductiveautomation.com/u/dkyerger)\
**Post date:** [February 16, 2021, 7:09pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/19 "2021-02-16T19:09:04Z")

</div>

Just thought I’d flag this so I get updates.

---

<div class="post-metadata">

**Author:** ![iborwick](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@iborwick](https://forum.inductiveautomation.com/u/iborwick)\
**Post date:** [September 1, 2021, 7:11pm UTC](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882/20 "2021-09-01T19:11:14Z")

</div>

Any update on this? Still not working for 8.1. Also just trying to bring it to attention again.

[Next page](https://forum.inductiveautomation.com/t/bug-13632-perspective-docked-view-modal-fail/24882.md?page=2)
