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.
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:
| Prop | Type | Formula |
| Tabs | Input, Table | Table({display:"Tab 1",id:1}) |
| Styles | Input, Record | Just some colors and fonts and things. |
| Default Tab | Input, Number | Takes a context variable in the app; set to 1 by default. |
| ClickedTab | Output, 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.

Report
All responses (
Answers (