# Popup with Dynamic View Size Based on Tab Index Freezes When Moved

**URL:** <https://forum.inductiveautomation.com/t/popup-with-dynamic-view-size-based-on-tab-index-freezes-when-moved/105579>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 25, 2025, 6:10pm UTC](https://forum.inductiveautomation.com/t/popup-with-dynamic-view-size-based-on-tab-index-freezes-when-moved/105579 "2025-04-25T18:10:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sondre\_Asheim](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Sondre\_Asheim](https://forum.inductiveautomation.com/u/Sondre_Asheim)\
**Post date:** [April 25, 2025, 6:10pm UTC](https://forum.inductiveautomation.com/t/popup-with-dynamic-view-size-based-on-tab-index-freezes-when-moved/105579/1 "2025-04-25T18:10:57Z")

</div>

Hi,

I’ve created a Tab Container-popup view. The height and width of the view change dynamically based on the selected tab index. I’m using a property binding on the view's 'defaultSize', I used the 'props.currentTabIndex' with a map transform to apply different dimensions depending on the active tab—since each tab displays content with varying space requirements.

This setup works perfectly as long as the popup stays in its original position. However, once the open popup is moved around on the screen, the view’s dimensions seem to become fixed based on whatever tab was active at the time of the move. Switching tabs after that no longer updates the size of the view or the popup.

Has anyone encountered this behavior before?  
Is there a best practice or workaround to ensure the popup and view continue resizing correctly when switching tabs, even after the popup has been moved?

Any insights or suggestions would be greatly appreciated.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![kody.penn](https://avatars.discourse-cdn.com/v4/letter/k/838e76/32.png) [@kody.penn](https://forum.inductiveautomation.com/u/kody.penn)\
**Post date:** [May 14, 2025, 5:12pm UTC](https://forum.inductiveautomation.com/t/popup-with-dynamic-view-size-based-on-tab-index-freezes-when-moved/105579/2 "2025-05-14T17:12:17Z")

</div>

I just ran into this issue as well, I found a few other posts about it with solutions. You can add this to your stylesheet, and it should correct the height issue.

.ia\_popup{  
height: auto !important;  
}

[Perspective Popup runtime resize behavior - Ignition - Inductive Automation Forum](https://forum.inductiveautomation.com/t/perspective-popup-runtime-resize-behavior/57007)

[Perspective Popup height changes when dragged - Ignition - Inductive Automation Forum](https://forum.inductiveautomation.com/t/perspective-popup-height-changes-when-dragged/96657)
