web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Responsive Containers
Power Apps
Unanswered

Responsive Containers

(1) ShareShare
ReportReport
Posted on by 67

Apologies for the slightly long explanation below...

It's appears many are promoting the use of responsive containers, horizontal and vertical. We however have had issues with height and width calculation on more complex components within these responsive containers. This seems to be exacerbated by having some elements within the responsive containers with the Visibility property programmatically set. We hide some controls (form fields, labels, etc.) by data, user or user role. The Studio designer when zoomed to about 40%, showed some of these controls appearing way off screen even when the container itself was displayed in the correct position and the X, Y, Width and Height appearing to be set correctly.

Intermittently the controls will appear, often after a screen recycle, switching away then back again. We found very intermittent in play mode in LIVE, some users experiencing the issue and others with the same data fine. If Visible was false, the dimension properties were also intermittently displaying incorrectly. If onscreen form, or data was amended by the user, controls would not recalculate correctly, or only partially, even more confusing. Even changing button text based on variables, or App.Formula, would corrupt the display.
It's difficult to prove this is an issue in PowerApps, although I did replace some responsive containers with a standard container, then reprogrammed the X, Y, Width and Height properties of the controls to place them dependant on each other manually. This then showed the width and position correctly. I was also able to reuse the visibility property as required for our purposes.

This has happened across multiple Apps. Unfortunately I'm unlikely to be able to post any screen shots due to company restrictions. I am not in a position where I can spend time away from our next round of development to produce the simplest example but if I do would try and post here!

The idea of responsive containers would enable users with less development experience develop move complex layouts without the need to build the responsiveness manually. I may have to alter up to 4 Apps to remove the responsive controls if I cannot find another solution.
Has anyone else had these issues?

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    There are three kinds of Responsive Containers, Horizontal, Vertical, and Containers.  Horizontal and Vertical containers are designed to stack components inside them Horizontally or Vertically and resize things on the fly. Having some of the components inside those containers be Invisible throws off those calculations. The way I normally use containers to avoid this is by using Horizontal and vertical containers to divide up the screen, but always using a plain container as the inmost container to actually hold the controls.  This kind of design avoids the issues you are describing.  If you follow that rule of thumb the use of containers becomes much more intuitive and much less of a problem.

  • Commander_Data Profile Picture
    67 on at

    This is the approach I am going to take. Using complex components with variable height, width, and trying to use them in the vertical and horizontal containers, just needs more work from MS to be usable as I would expect. Having said that for screen layout yes they seem to work as expected.

    Thanks, just not me with the issue then.

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    As I said, complex components with variable height, width and placement ARE going to be a problem in Vertical and Horizontal containers because the container is the one that is responsible for placing the controls. If you want to use variable height, width, and placement that isn't handled by the container then you should be using a regular container not a Vertical or Horizontal one.  Its not a matter of MS doing more work. The settings you are trying to impose on the controls is conflicting with the settings imposed by the container.  That's what they are designed to do and it isn't going to change.  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard