# Can i force perspective to use horizontal layout?

**URL:** <https://forum.inductiveautomation.com/t/can-i-force-perspective-to-use-horizontal-layout/73850>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 17, 2023, 4:48pm UTC](https://forum.inductiveautomation.com/t/can-i-force-perspective-to-use-horizontal-layout/73850 "2023-05-17T16:48:38Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![hewking32](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hewking32](https://forum.inductiveautomation.com/u/hewking32)\
**Post date:** [May 17, 2023, 4:48pm UTC](https://forum.inductiveautomation.com/t/can-i-force-perspective-to-use-horizontal-layout/73850/1 "2023-05-17T16:48:38Z")

</div>

hi All  
I am learning perspective and wonder if there is a way for perspective to force horizontal view in the tablet (without modification of the tablet settings)? My horizontal view looks a lot better than vertical so i would prefer this to be used 🙂

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 17, 2023, 5:24pm UTC](https://forum.inductiveautomation.com/t/can-i-force-perspective-to-use-horizontal-layout/73850/2 "2023-05-17T17:24:42Z")

</div>

I think you mean "force landscape view". The answer would be no as landscape / portrait is determined by the device's OS, not by the browser and not by the web page's contents.

> [@hewking32](#):
>
> My horizontal view looks a lot better than vertical so i would prefer this to be used 🙂

I think you need to master flexible layout. Make the layout look good either way and let the user decide which way works best for them.

---

<div class="post-metadata">

**Author:** ![hewking32](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hewking32](https://forum.inductiveautomation.com/u/hewking32)\
**Post date:** [May 17, 2023, 10:15pm UTC](https://forum.inductiveautomation.com/t/can-i-force-perspective-to-use-horizontal-layout/73850/3 "2023-05-17T22:15:03Z")

</div>

yes it makes sense it should look good in both layout.

in my case i have many dropboxes which are in 1 row in landscape view but in portrait i would use breakout container to swap the view to have 2 rows of dropboxes which would have enough space then

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 17, 2023, 10:50pm UTC](https://forum.inductiveautomation.com/t/can-i-force-perspective-to-use-horizontal-layout/73850/4 "2023-05-17T22:50:50Z")

</div>

> [@hewking32](#):
>
> in portrait i would use breakout container

There may not be any need for that. The flex container is designed to accomodate wrapping.

![Flex wrapping](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/1/912802457a4562adde3c084c625518577e8604b7.gif)

Follow the structure on the left.

- Set the top level container to `direction : row` and `wrap : wrap`, `position.grow : 1`, `shrink : 0`, `basis : auto`.
- Set the sub containers to `direction : column` and `wrap : nowrap`, `justify : flex-start', `position.grow : 1`, `shrink : 0`, `basis : 200px`.  
You might need to play around with some of the other settings.

---

<div class="post-metadata">

**Author:** ![hewking32](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hewking32](https://forum.inductiveautomation.com/u/hewking32)\
**Post date:** [May 18, 2023, 4:10pm UTC](https://forum.inductiveautomation.com/t/can-i-force-perspective-to-use-horizontal-layout/73850/5 "2023-05-18T16:10:18Z")

</div>

thanks for that example  
just wonder if top flex container would not be enough - do we need to wrap individual dropboxes in their own containers?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 18, 2023, 4:15pm UTC](https://forum.inductiveautomation.com/t/can-i-force-perspective-to-use-horizontal-layout/73850/6 "2023-05-18T16:15:27Z")

</div>

> [@hewking32](#):
>
> ropboxes which are in 1 row in landscape view but in portrait i would use

The individual flex containers are there to keep the captions and dropdowns together. (I had added the border to make it clear where the container boundaries are.) This ensures that a caption is never "widowed" at the end of a line and that a dropbox can't be "orphaned" at the start of a line.

---

<div class="post-metadata">

**Author:** ![hewking32](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hewking32](https://forum.inductiveautomation.com/u/hewking32)\
**Post date:** [May 18, 2023, 4:30pm UTC](https://forum.inductiveautomation.com/t/can-i-force-perspective-to-use-horizontal-layout/73850/7 "2023-05-18T16:30:12Z")

</div>

i understand and it makes sense.  
However in my case i don't use captions but instead of that when no options is selected there is text displayed with instruction eg. "select XYZ" which would mean i could simplify it further and don't use individual containers

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 18, 2023, 4:58pm UTC](https://forum.inductiveautomation.com/t/can-i-force-perspective-to-use-horizontal-layout/73850/8 "2023-05-18T16:58:20Z")

</div>

> [@hewking32](#):
>
> when no options is selected there is text displayed with instruction eg. "select XYZ"

That should work fine. Set your shrink, grow and basis parameters to suit.

---

<div class="post-metadata">

**Author:** ![Ryan\_Allen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan_allen/32/47013_2.png) [@Ryan\_Allen](https://forum.inductiveautomation.com/u/Ryan_Allen)\
**Post date:** [May 18, 2023, 5:08pm UTC](https://forum.inductiveautomation.com/t/can-i-force-perspective-to-use-horizontal-layout/73850/9 "2023-05-18T17:08:13Z")

</div>

I was also wondering about this. I wonder if there's a way to disable screen rotation while in the Perspective app. I don't know enough about mobile app development to know how difficult it would be to ask for user permissions and do something like that.

---

<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:** [May 18, 2023, 5:26pm UTC](https://forum.inductiveautomation.com/t/can-i-force-perspective-to-use-horizontal-layout/73850/10 "2023-05-18T17:26:27Z")

</div>

There is not. We have an open feature ticket to add the ability to lock screen layout to portrait or landscape for mobile devices using the Perspective Application, but the ticket has been idle for a long time now.

---

<div class="post-metadata">

**Author:** ![Tim\_Carlton](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim_carlton/32/52835_2.png) [@Tim\_Carlton](https://forum.inductiveautomation.com/u/Tim_Carlton)\
**Post date:** [May 18, 2023, 5:46pm UTC](https://forum.inductiveautomation.com/t/can-i-force-perspective-to-use-horizontal-layout/73850/11 "2023-05-18T17:46:11Z")

</div>

Users have the ability to lock the screen to their preferred orientation if that meets their needs at the OS level.

If the device is locked down by corporate policy then the MDM administrator has the ability to lock the screen to a particular orientation at the OS level.

There are devices that have a preferred orientation, and there are devices that only makes sense in one particular orientation (e.g., an RFID reader).

Trying to force the user into an awkward or unsupported orientation might not be the right approach.
