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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (92,261)