cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KD99
Frequent Visitor

On Start not loading consistently

I have "On Start" item for Screen padding based on user's screen width,
However, it seems like it is not consistently hiring off.

 

If(App.Width < 800, Set(varApp,{Padding: 10}),
App.Width < 1166, Set(varApp,{Padding: 50}),
Set(varApp, {Padding: (App.Width-1066)/2}));

 

App Width / App Height / Padding

1919 936 10

1919 936 426.5

 

The padding should be 426.5,

but on occasion padding shows up with 10 upon refreshing the entire App.

Never 50,

I have Setting Delayed Load and User non-blocking OnStart Rule turn off

2 REPLIES 2
eka24
Super User III
Super User III

I think you need another if;

If(App.Width < 800, Set(varApp,{Padding: 10}),

If(App.Width < 1166, Set(varApp,{Padding: 50}),

Set(varApp, {Padding: (App.Width-1066)/2})))

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

KD99
Frequent Visitor

Unfortunately,  it does not seem to work. Thank you though 😀

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,759)