cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MichaGue
Resolver I
Resolver I

Display error with vertical gallery

Hello, I have built a menu consisting of two levels, each with a gallery.

 

galMenuVertical
   galSubMenuVertical
      btnClickSubMenuVertical
      lblSubMenuVertical
      btnClickMenuVertical
   lblMenuVertical
   icoMenuVertical

 

Very strange, sometimes a vetical scrollbar appears.

 

The display problem seems to be triggered by expanding the menu. If I click on each menu item once after expanding the menu and then move the mouse over "Sub 1" to correct the display errors, the error no longer occurs. If I close the menu and expand it again, the error is there again (see animation).

 

PowerAppsMenu_2.gif

 

What I have tested:

  • Disable the scrollbar in the advanced properties of the gallery. Then the submenu, like in the animation above, is not complete. Only "sub 1" will be showed, not "sub 1" + "sub 2".
  • I have checked it in 3 browsers (Edge, Firefox, Chrome). All show the same error, which means the cause is not browser specific.
  • It looks like there is a linebrake at the end of the submenu items. I tried to remove it with but had no success.
Substitute(ThisItem.SubMenuLabel,Char(10),",")

 

Any other ideas?

 

Thanks an best regards.

1 ACCEPTED SOLUTION

Accepted Solutions
MichaGue
Resolver I
Resolver I

The problem is understandable if you know the internal processes better. In my app, some calculations are performed to determine the dimensions of the menu.

 

What is the cause of the rendering error?

  • The rendering of the gallery is faster than the calculation of the formulas is.

Why is the rendering error gone when all menu items are clicked once?

  • After everything has been clicked once, the calculation results are already available and do not need to be done again. I.e. the rendering is correct, because the calculations are already available.

How to solve the problem?

  • In both galleries you change "DelayItemLoading" to true.
  • In the gallery of the submenu deactivate the scrollbar

View solution in original post

1 REPLY 1
MichaGue
Resolver I
Resolver I

The problem is understandable if you know the internal processes better. In my app, some calculations are performed to determine the dimensions of the menu.

 

What is the cause of the rendering error?

  • The rendering of the gallery is faster than the calculation of the formulas is.

Why is the rendering error gone when all menu items are clicked once?

  • After everything has been clicked once, the calculation results are already available and do not need to be done again. I.e. the rendering is correct, because the calculations are already available.

How to solve the problem?

  • In both galleries you change "DelayItemLoading" to true.
  • In the gallery of the submenu deactivate the scrollbar

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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