# \[Bug-12795\] Popup Title Bar Should Not Be Required In Certain Instances

**URL:** <https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675>\
**Category:** Ignition Early Access\
**Tags:** ignition80, scripting\
**Created:** [February 19, 2019, 3:11pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675 "2019-02-19T15:11:09Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe.friedrich](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joe.friedrich/32/7505_2.png) [@joe.friedrich](https://forum.inductiveautomation.com/u/joe.friedrich)\
**Post date:** [February 19, 2019, 3:11pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/1 "2019-02-19T15:11:10Z")

</div>

I’m calling a popup window via [system.perspective.openPopup()](https://docs.inductiveautomation.com/display/DOC80/system.perspective.openPopup).

Tried this but I didn’t like the Title Bar that appears.  
system.perspective.openPopup(‘uniqueName’, ‘popupLocation’)

Noticed that the close window was in the upper right hand corner.

Thought removing it might work:  
system.perspective.openPopup(‘uniqueName’, ‘popupLocation’, showCloseIcon=False).

Then noticed that you can only move the window via the bar at the top, so I tried this.  
system.perspective.openPopup(‘uniqueName’, ‘popupLocation’, showCloseIcon=False, draggable=False)

Tried sending a blank title.  
system.perspective.openPopup(‘uniqueName’, ‘popupLocation’, title=’’, showCloseIcon=False, draggable=False)

Still didn’t work. Did I do something incorrectly? ![PopUpTitleBar](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/7f02497ee442c6c28593f437a1021d47fbabed71.png)

---

<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:** [February 19, 2019, 4:01pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/2 "2019-02-19T16:01:56Z")

</div>

You’ve done everything correctly. It looks like all of our manual testing for the popup uses Views with white backgrounds, so instances without titles displayed white-on-white - so we never saw the offending title bar. I would _think_ that we should be able to remove the title bar in the instance a Popup

1. has no title
2. has no close icon
3. is not draggable

but I’m not positive… I’ll open a ticket and we’ll see what happens.

---

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [February 21, 2019, 1:47am UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/3 "2019-02-21T01:47:59Z")

</div>

That would be good - or if it can’t be removed, allowing some way of modifying the appearance would be helpful.

I have a small popup with no title, no close icon, not draggable, and a white background. If I align some header text right at the top of the view, it doesn’t appear to be at the top at runtime, because of the white space above which blends with the white background. Instead, it just looks like I’ve mistakenly pushed all my content 20 pixels down the page.

If I make the popup background a different colour, you can see the title bar and it looks normal - but if I want a white background, and I can’t change the title bar from white, it just looks misaligned.

---

<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:** [February 21, 2019, 3:14pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/4 "2019-02-21T15:14:50Z")

</div>

Just to provide some points for designing around Popups since it sounds like some of you want to get crazy and strip out the title bar (and by extension the Close Icon):

1. Unless you’re using a modal configuration, your popup should ALWAYS have some way to be closed or moved - whether it’s the close icon or being draggable, you don’t want to open a Popup your user can’t close. An internal strategy is to always open a Popup with a script action which sends the Popup ID as a parameter to the View being used in the Popup. It’s then the responsibility of whoever designs the View to have a Button in the View which closes the Popup (either on submit or cancel).

2. Think about mobile users as well - Popups are great on desktops, but not always great on mobile.

---

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [February 21, 2019, 10:48pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/5 "2019-02-21T22:48:33Z")

</div>

> [@cmallonee](#):
>
> Unless you’re using a modal configuration, your popup should ALWAYS have some way to be closed or moved - whether it’s the close icon or being draggable, you don’t want to open a Popup your user can’t close. An internal strategy is to always open a Popup with a script action which sends the Popup ID as a parameter to the View being used in the Popup. It’s then the responsibility of whoever designs the View to have a Button in the View which closes the Popup (either on submit or cancel).

That raises a point I hadn't thought of - I do have a "dismiss" button on my popup, which is just uses a popup action to close that popup. But, by your description of passing the popup identifier to the view when opening it, I'm thinking it might be more complicated.

Presumably that action would close all instances of that popup in my particular session, hence the need to pass the identifier to the view so that it can act only on its own instance. I'm currently passing a tagPath parameter to the view, which would be unique. Let's say I'm calling this popup using an Open Popup action from an onClick even. I pass `[default]Motors/Motor_1` to the tagPath parameter, and also enter that same text in the Identifier field. Then on the popup, I create a "dismiss" button, and onClick trigger a Popup Close action. I configure it to close the view with the identifier {view.params.tagPath}. Would this work, or do I have to do it via scripting? And, is there no way of scripting it to act only on itself via something like `self.closePopup`?

One other question - reading through the documentation for the openPopup and closePopup function, you can specify the particular session, and if you don't, it acts on the current session. So that being the case, presumably if I use the method above, it would act only on the current session by default?

---

<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:** [February 22, 2019, 3:25pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/6 "2019-02-22T15:25:06Z")

</div>

Your example of using the tagPath should work just fine. I’m not sure if it’s any sort of a security concern, but the id provided to a Popup DOES appear in the Browser DOM with a “popup-” prefix attached to it.

As for the `self.closePopup()` idea, you’re giving the View far too much credit. Views essentially know only about their properties and their child component/container properties - Views themselves take no actions and do not interact with anything. `system.perspective.closePopup()` and similar methods are the _system_ (Gateway) performing an action or gathering/manipulating/sending data through the web socket connection. Even bindings are the Gateway performing actions behind the scenes. So a View (`self`) or its child components/containers can’t perform actions like closing themselves or removing themselves because they’re really nothing more than a JSON holding data.

Your session conclusion is also correct - not specifying a session will result in the action only being taken on your session. Localized session interaction can be expected for EVERYTHING in Perspective, outside of Gateway-side data manipulation (tags and database) because other sessions would be viewing/accessing that same data.

---

<div class="post-metadata">

**Author:** ![joe.friedrich](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joe.friedrich/32/7505_2.png) [@joe.friedrich](https://forum.inductiveautomation.com/u/joe.friedrich)\
**Post date:** [February 22, 2019, 3:29pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/7 "2019-02-22T15:29:45Z")

</div>

> [@cmallonee](#):
>
> they’re really nothing more than a JSON holding data.

I learned this the hard way.

> [@\[BUG-12867\] Perspective view changed to empty folder](http://forum.inductiveautomation.com/t/bug-perspective-view-changed-to-empty-folder/22805/4):
>
> Mine did this when I Copied JSON to Notepad++ Removed the Thumbnail at the bottom which was Tens of Thousands of lines long dizzy_face 2a. (Because I wanted it to be easier to move around in Notepad++) Copied it back to a test view. This also corrupted the project! Here is an example of the errors I started getting on the server: Please learn from my example! rofl

---

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [February 23, 2019, 1:54am UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/8 "2019-02-23T01:54:33Z")

</div>

Thanks, that fills out the picture for me quite a bit.

---

<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:** [March 11, 2019, 3:30pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/9 "2019-03-11T15:30:31Z")

</div>

This issue was fixed in the build that was uploaded on 3/9.  
Please let us know if you continue to see this behavior after upgrading.

---

<div class="post-metadata">

**Author:** ![swolnisty](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@swolnisty](https://forum.inductiveautomation.com/u/swolnisty)\
**Post date:** [November 8, 2019, 6:03pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/10 "2019-11-08T18:03:17Z")

</div>

Apologies for the raising the dead a bit here. Based on this thread I am under the assumption that when a popup:

> [@cmallonee](#):
>
> 1. has no title
> 2. has no close icon
> 3. is not draggable

that the popup should not have a title bar. Should this still be the case or has something changed in the last 8 months?

---

<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 8, 2019, 6:11pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/11 "2019-11-08T18:11:07Z")

</div>

That should be true, yes.

---

<div class="post-metadata">

**Author:** ![swolnisty](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@swolnisty](https://forum.inductiveautomation.com/u/swolnisty)\
**Post date:** [November 8, 2019, 6:38pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/12 "2019-11-08T18:38:01Z")

</div>

Well, I was going to say that I was still experiencing this issue, but apparently I just missed the fact that the draggable parameter defaults to true. You can disregard my comments.

---

<div class="post-metadata">

**Author:** ![Steve\_Laubach](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steve_laubach/32/60900_2.png) [@Steve\_Laubach](https://forum.inductiveautomation.com/u/Steve_Laubach)\
**Post date:** [November 11, 2019, 6:54pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/13 "2019-11-11T18:54:19Z")

</div>

I think I am experiencing this issue also (v8.05) and some others. I made a popup that I load with this script:  
system.perspective.openPopup(‘myPopupId’, ‘Popups/Alarm Display’, {‘Alarm Group’:‘AlarmGroup’,‘TagFolderPath’:’[default]Tagpathhere’}, position = {‘left’:250,‘bottom’:20}, showCloseIcon = False)

I’m getting a gray bar over my popup in all browsers I’ve tried (Edge, Chrome and Firefox).

---

<div class="post-metadata">

**Author:** ![swolnisty](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@swolnisty](https://forum.inductiveautomation.com/u/swolnisty)\
**Post date:** [November 11, 2019, 6:59pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/14 "2019-11-11T18:59:29Z")

</div>

Sounds like you might have the same cause of the issue that I did. I needed to specifically set draggable= False in the function’s parameters.

---

<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 11, 2019, 7:02pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/15 "2019-11-11T19:02:23Z")

</div>

@swolnisty is correct.

@Steve_Laubach, in your example, you do not set the `draggable` argument to `False`, so it uses the default value of `True`. Please look more into the [documentation](https://docs.inductiveautomation.com/display/DOC80/system.perspective.openPopup), where we clarify the default values.

If a popup is draggable, OR (inclusive) it has a title, OR (inclusive) it has a close icon, then you can expect the title bar.

---

<div class="post-metadata">

**Author:** ![Steve\_Laubach](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steve_laubach/32/60900_2.png) [@Steve\_Laubach](https://forum.inductiveautomation.com/u/Steve_Laubach)\
**Post date:** [November 11, 2019, 7:51pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/16 "2019-11-11T19:51:36Z")

</div>

Thanks for your help (both of you). I knew about the draggable property from the help but I didn’t realize it was adding my header bar. I’m happy to see it isn’t a bug.

---

<div class="post-metadata">

**Author:** ![umesh\_chandra\_pocham](https://avatars.discourse-cdn.com/v4/letter/u/f6c823/32.png) [@umesh\_chandra\_pocham](https://forum.inductiveautomation.com/u/umesh_chandra_pocham)\
**Post date:** [September 22, 2023, 2:02pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/17 "2023-09-22T14:02:34Z")

</div>

Hi Steve, I have the same issue where I am able to see a title bar on top when draggable is True. Is this issue still unresolved or there's any way to overcome it?

---

<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:** [September 22, 2023, 3:33pm UTC](https://forum.inductiveautomation.com/t/bug-12795-popup-title-bar-should-not-be-required-in-certain-instances/22675/18 "2023-09-22T15:33:44Z")

</div>

> [@umesh\_chandra\_pocham](#):
>
> I am able to see a title bar on top when draggable is True.

> [@cmallonee](#):
>
> If a popup is draggable, OR (inclusive) it has a title, OR (inclusive) it has a close icon, then you can expect the title bar.

This is expected behavior, and so there is no issue to resolve. If you do not want the title bar to be present, you must set set the popup to NOT be draggable, have no title, and display no close icon.
