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

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

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