trackContainerResize
Determines the container sizing if the component needs to react. Component will get allocatedWidth
or allocatedHeight
if the input is true..
If the parent context hosting the component provides a limit on the height in model-driven apps, the same is properly applied to the child component. However, in most scenarios,the parent context does not constrain the height of the component, and so it receives "-1" to indicate that it may grow further.
In canvas apps, the parent context always provides the height and width to the component by nature of the drag-and-drop editor.
Available for
Model-driven apps
Syntax
context.mode.trackContainerResize(value)
Parameters
Parameter Name | Type | Required | Description |
---|---|---|---|
value | Boolean |
Yes | True if controls needs to track container size, component will get allocatedWidth or allocatedHeight. |
Related topics
Mode
Power Apps component framework API reference
Power Apps component framework overview
Note
Can you tell us about your documentation language preferences? Take a short survey.
The survey will take about seven minutes. No personal data is collected (privacy statement).