# Perspective Popup runtime resize behavior

**URL:** <https://forum.inductiveautomation.com/t/perspective-popup-runtime-resize-behavior/57007>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [March 9, 2022, 9:42am UTC](https://forum.inductiveautomation.com/t/perspective-popup-runtime-resize-behavior/57007 "2022-03-09T09:42:05Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [March 11, 2022, 7:48am UTC](https://forum.inductiveautomation.com/t/perspective-popup-runtime-resize-behavior/57007/14 "2022-03-11T07:48:21Z")

</div>

> [@mahsasalimi](#):
>
> . however it gets overwritten as soon as you move the pop up again

Yeah for that you will have to use the css class i provided.  
create a theme.css or inject it in a styleclass

> [@victordcq](#):
>
> ```python
> #popup-YourPopupId {
> width: auto !important;
> height: auto !important;
> }
> 
> ```

the **easiest way** is to inject it in a style class, **the correct way** is to make a theme.css

injection is done by putting the css in a styleclass background image surrounded by inverted brackets  
}{ (no need to assign the class to anything)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/8/08e07747b1b965932421676065c3fa74d71f2536.png)

a theme must be created here ` C:\Program Files\Inductive Automation\Ignition\data\modules\com.inductiveautomation.perspective\themes`  
and import your default theme file (light css) and set your default theme to the one you just made.  
Do not edit existing themes as these will be lost on an update

make sure the id matches and you turn of resizing, and make it somewhat unique as it will work on all your projects and may sometimes cause unwanted behavior in other senarios

> [@victordcq](#):
>
> ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/b/db9e8b672bc6f8fb51b334b347acc2103c5ddcfb.png)  
> ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/2/02e8a748d2b566b05a9fa69965cd02493973dada.png)

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-popup-runtime-resize-behavior/57007)._
