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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Horizontal Containers ...
Power Apps
Unanswered

Horizontal Containers failing inside Canvas Components (children out of order)

(2) ShareShare
ReportReport
Posted on by 26
I am having a quite strange issue with some Canvas Components and I'm hoping to find out if it's some sort of weird issue on my end (although I'm not certain how it would be) or if anyone else is experiencing the same. 
I'll explain in detail later on, but for now I will just let some screenshots do the talking.
 
1. This is a simple canvas component I built. It's your garden-variety app header, that can show some basic information like the name of the screen, a back button, etc. All of the elements are inside of a main horizontal container. The red and green containers are not really meant to be that color in prod, but I set them with some distinctive colors for testing.
 
2.  This is what the component should look like when imported from the library and added to an app. Note the component has expanded and the containers along with it. This is as expected. The table in the image is showing the X/Y values for each of the elements within the horizontal container.
 
3. This is what the component ends up looking like after saving, closing, and reopening the app. Somehow the items inside that parent container have gotten out of order.
 
To say this is annoying would be a massive understatement. Up until now my experience with the horizontal and vertical containers has been great, and I'm struggling to wrap my head around what could be happening here. To reiterate how this issue happens:
  1. I made the component within a component library and published it.
  2. I imported the component into a Canvas App.
  3. The following happens:
    1. When I first import the component from the library, it displays as expected in the app.
    2. After leaving and returning to the app, elements within a horizontal container in the component appear out of order.
To answer some common upfront questions:
  • There is nothing silly going on with any of the containers. They are simply flexible width to accommodate various screen sizes. The red/green coloring was something I added for debugging purposes.
  • I have tried placing the component in multiple Canvas Apps. All exhibit the same behavior.
  • I have tried replicating the component from scratch (actually made a slightly simpler version). It exhibited the same behavior.
  • All instances of the component show incorrectly in a given app, including if a new one is added on the same or a different screen.
  • The only way I can get the component to show correctly again is by triggering a 'new' load of the component - either by updating the component in the library, or removing it from the app and re-importing.
Given a few other issues I've had recently with colors not rendering as expected when read from an external theme object, I am mildly suspicious that some recent changes to the Canvas App rendering engine have moved a little too far toward eager loading and it's breaking things that are supposed to be dynamic at render time. I am really at a loss as to what might be happening here and would welcome any insight as to whether this is a 'me' issue or something else. 
Screenshot 2025-09-15 135613.png
Screenshot 2025-09-15 135511.png
Screenshot 2025-0...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (2)
  • CU04041556-0 Profile Picture
    10 on at
    I’m running into the same issue as well.
     
    I have done all the things you have stated above, too.
     
    I have also removed it from the app and re-imported the components. Unfortunately, as soon as you make another change, the same behavior shows up again.
     
    I don’t have a workaround yet (still trying to figure one out), but you’re definitely not alone on this!
  • TomIrving Profile Picture
    2 on at
    I am having the exact same issue. 
    Everything was fine for a few weeks after building the comp. so i had started using the component header in several apps. Then out of the blue the problem appeared. 
    I have resorted to abandoning the container approach until the problem gets fixed or I find a work around.
  • CU04041556-0 Profile Picture
    10 on at
    I believe I found a workaround. 
     
    Save any changes to the primary app before doing this.
     
    When I go to sync the new changes to the Component Library. Right when it finishes, do not hit save on the primary app. Just navigate away from the primary app and if it prompts you about leaving, just leave the app. 
     
    When you go back to the app, the changes should be in the right order. When I go to publish, I don't have issues with the order either. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 860

#2
Valantis Profile Picture

Valantis 548

#3
Haque Profile Picture

Haque 417

Last 30 days Overall leaderboard