cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cidreno
Helper I
Helper I

what do the height and width numbers represent

Let's say I have Control1.Height = 200

200 what?

 

i see what it does but i don't know what it is

5 REPLIES 5
Alex_10
Super User
Super User

@cidreno 

controls are measured in pixels.
font size is measured in points.

So a control with height 200 would be 0.5" tall on a device with 400 ppi, is that correct?

Alex_10
Super User
Super User

@cidreno 

i would say it depends.

as you mention ppi, i believe you are talking about a mobile device.

mobile devices use 'View port' resolution rather than true physical resolution.

TonyKuiper1967
Regular Visitor

I like to chuck a couple of temporary labels somewhere on the screen with text properties as per below.

You can then keep an eye on the screen dimensions your working with and set various elements to values that relate to them and to other element properties. ie making sure components stay visible instead of being pushed off the screen on a mobile device when changing orientation.

TonyKuiper1967_0-1656653102177.png

 

 

" App Width: "& App.Width&" Size: "& Screen1.Size & "Gal Width " & Gallery1.Width

" App ht: "& App.Height&" Size: "& Screen1.Size& " gal ht: "& Gallery1.Height

and @Alex_10 , fantastic. both super helpful.

@Alex_10 , i guess that's why i couldn't find information on the viewport of my laptop <palm to forehead>

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,339)