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
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,796)