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 / Weird issue with Libra...
Power Apps
Unanswered

Weird issue with Library Components after publication

(0) ShareShare
ReportReport
Posted on by 15

Trying to be smarter in my powerapps development (and take advantage of controls that actually look like they belong in M365), so I've taken to building out a series of components that I use a lot in most apps. Some standard form fields, menu components, etc. Nothing terribly complicated, to be honest. But I'm having two incredibly weird issues with my components that I can't seem to find any corroboration for online.

 

Issue one: the bounding box around every component I've created appears to shift on the screens in the app I'm using them in. An example: I make a text field component with a label and a text field. In the library, it's set to be 80px high and maybe 500px wide, in my app, after publication, the component looks fine on the screen, but its bounding box is suddenly the stock 640x640 you get when you create a new component. I have to manually edit the width/height and in some cases X and Y values in order to return the bounding box to the actual dimensions of the component on the screen.

 

boundingbox.png

Note that the component is 75 pixels tall and 1366 pixels wide but the bounding box is, for some reason, 640x640.

 

Issue 2 I've created a component to tab long forms into sections. Nothing super complicated, your standard gallery with a button that exposes a ClickedTab output property that I use to show/hide containers. My props:

PropTypeFormula
TabsInput, TableTable({display:"Tab 1",id:1})
StylesInput, RecordJust some colors and fonts and things.
Default TabInput, NumberTakes a context variable in the app; set to 1 by default.
ClickedTabOutput, Number_selectedTab

 

_selectedTab is set by OnClick on the button (which technically is just selecting the Gallery, it's the OnSelect of the gallery that sets the _selectedTab variable).  Without fail, any time I republish the library, my form tab component stops emitting ClickedTab. The output variable is blank. I have to delete the component and then undo the delete in order for the component to return to the state I left it before my last Library publication.

 

Has anyone experienced any of this stuff? I really want to make use of components but Microsoft is making it really, really hard to do so.

Categories:
I have the same question (0)
  • Tom Bishop Profile Picture
    19 on at
    I have the same issue. Height and Width are actually custom properties on my controls. X and Y are set based on where I'm using the component and are often calculated values, e.g., Parent.Width - Self.Width - 10
     
    Can I deal with it by manually fiddling with the height, width, X, and Y values until it all looks good? Yes. Should I have to ? No.
     
    I've noticed that it happens more often when using items from a Component Gallery.
     
    Thanks,
    Tom

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard