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
Super User

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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (1,782)