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 / Objects in components ...
Power Apps
Answered

Objects in components seem to be ignoring sizes after publishing

(2) ShareShare
ReportReport
Posted on by

Will attach more screenshots if needed, but problem is in title. The app was perfectly normal yesterday and is perfectly normal in preview mode but once I publish the app it seems that any container or shape that has a static height or width is stretching or almost doubles in size, or small lines I used as spacers are giant rectangles. I am not sure if this has anything to do with the issue where size on components are resetting to zero almost every time I open a new session so I have to reset all containers parent's width and height, but it's extremely infuriating. Note this is my first time using components so I do not know if there is some odd limitation that I am unaware of or something.

 

I have messed with a few features turning them off to see if that would have solved the issue but have had no luck.

 

To explain how I have things set up without a bunch of images:

 

NAVIGATION BAR

  • The navigation bar is a container justified left and aligned center, parent height and width.
  • The logo and profile picture are in their own containers with parent height and a static width.
  • The company name, spacer, and app name are in their own horizontal container, justified left and aligned center.
  • The container is parent height and flexible width to resize.
  • The two text labels both have static heights and widths, the spacer's container is parent height with a static width.

Back Button And Label

  • Horizontal container justified left and aligned center, parent height and width.
  • Both the button and label have a parent height and a static width.

Form

  • Because forms can't be used in components I have comboboxes and inputs that patch to a SharePoint.
  • Each 'section' is in a vertical container that is in a horizontal container, in the main vertical container.
  • The main container (vertical) is parent height and width and justifies start.
  • The sub container (horizontal) is parent height and flexible width.
  • The two section containers (vertical) are parent height and width, and justifies end and start respectively.

Days Counter

  • A vertical container that justifies start with parent height and width.
  • A text label with parent width and a static height.
  • A container with parent width and a static height, with a rectangle that has a static width and parent height.
  • Last is a gallery with parent width and a flexible height.

 

Below, attached is how the app looks in preview mode and how the app looks when started after being published.

I apologize if it is a bit confusing I'll try to explain as much as possible and provide as much more screenshots as possible if possible. Thanks!

 

result.png
intended.png
Categories:
I have the same question (0)
  • atmospheric Profile Picture
    on at

    IntendedIntendedResultResult

  • atmospheric Profile Picture
    on at

    Update:

    Seems copying the contents of my components on to the screens themselves brought back "normal" behavior and also improved performance. So I may just go this route.

  • Verified answer
    crisdiglesias Profile Picture
    22 on at

    Hello @atmospheric ,

    Unfortunately I am also having the same problem after activating the new experimental functionality released from version 3.24013.

    - User Defined Functions (UDF)
    "Experimental User Defined Functions (UDF) can be defined alongside named formulas in the App.Formulas property to create reusable functions."

     

    -----

    As you can see in the screenshot, I just created two containers within the component, where the header container I defined a fixed height of 40.

     

    When including the component on the screen, the size of the containers are displayed correctly (editing mode), but when publishing and viewing in production mode, the difficulty still occurs. When I deactivate the new experimental functionality (UDF) and publish again, the failure stops occurring.

    ----

    Component editing tab:

    crisdiglesias_3-1707511451485.png

     

    Screen editing tab:

    crisdiglesias_1-1707510971316.png

     

    App in production with experimental UDF function active:

    crisdiglesias_2-1707511065485.png

     

    App in production with the experimental UDF function disabled:

    crisdiglesias_4-1707511810353.png

     

     

  • atmospheric Profile Picture
    on at

    Nice Catch!

     

    It turned out that the culprit for me was the new analysis engine. And after a 5 second google search I was met with a bold sentence on the Powerapps Experimental forum that said "Do not use this feature in production!". So I guess I have myself to blame...

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 372 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 303 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 238 Super User 2026 Season 1

Last 30 days Overall leaderboard