Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
1.6k views
in Power Apps by 3 3 4
In PowerApps, I want to increase the font size in the horizontal view (landscape) and decrease the font size in the vertical view (portrait).
So how I can control the font size to app orientation?

1 Answer

1 like 0 dislike
by 48 54 93
edited by

Adjust font size to be responsive to app orientation in Power Apps

You have to put this code in the Font Size property for each control

If(
    App.ActiveScreen.Orientation=Layout.Horizontal, 18,
    App.ActiveScreen.Orientation=Layout.Vertical, 12
)

In this example, whatever the mode of your created app when you rotate it to portrait the font size will be 12, and if you rotate it to landscape the font size will be 18,
and can change these numbers to your desired font size values.

If you don’t ask, the answer is always NO!
...