# Perspective view "defaultSize" parameter as "auto"

**URL:** <https://forum.inductiveautomation.com/t/perspective-view-defaultsize-parameter-as-auto/58782>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 24, 2022, 6:06am UTC](https://forum.inductiveautomation.com/t/perspective-view-defaultsize-parameter-as-auto/58782 "2022-04-24T06:06:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![benp](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/benp/32/34073_2.png) [@benp](https://forum.inductiveautomation.com/u/benp)\
**Post date:** [April 24, 2022, 6:06am UTC](https://forum.inductiveautomation.com/t/perspective-view-defaultsize-parameter-as-auto/58782/1 "2022-04-24T06:06:36Z")

</div>

Hi everyone,

To create a dropdown in my navbar page, I’m setting my view height as “auto”.  
The view can then automatically resize to display or not the dropdown content as overflow.

It works perfectly but the “defaultSize” parameter of the view doesn’t seems happy about being set as “auto”.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/6/d6027b3e84047245d875bf0788a073e1e5112394.png)

So my question is, in future updates, is there a risk that this is changed and Ignition would just reject it?  
How could I do the same dropdown display as overflow in a more proper way for Ignition?

This is the sort of navbar I’m trying to recreate.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/7/67665cb1561d7e74d57b965eb54a64347eab8083.png)

Thanks,

---

<div class="post-metadata">

**Author:** ![plo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/plo/32/33875_2.png) [@plo](https://forum.inductiveautomation.com/u/plo)\
**Post date:** [April 28, 2022, 9:54pm UTC](https://forum.inductiveautomation.com/t/perspective-view-defaultsize-parameter-as-auto/58782/2 "2022-04-28T21:54:16Z")

</div>

Hello! The props.defaultSize.height will expect a integer value. With a string value like your ‘auto’, the most recent valid number will be used instead. I wonder if the auto-sizing behavior you are observing is actually caused by a flex container or embedded view auto-adjusting your dropdown content.

How do you have your dropdown content displayed in your navbar?
