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 / Potential discrepancy ...
Power Apps
Unanswered

Potential discrepancy between visual width and actual width of field in model driven app form affecting pcf rendering.

(0) ShareShare
ReportReport
Posted on by 98

Hello, I am facing an issue with correctly rendering a custom component on a model driven app field.

The component consists of a text field that only accepts numbers, with a list of items representing the numbers already submitted.

Here is an example screenshot of the component while testing it in the local host:

Capture.PNG

The four lines at the top are for debugging purposes and represent from top to bottom: The current calculated max number of items per row (based on an item's width and the container's width), the width of each item, the width of the entire container and the width of a filled row of items given the previously mentioned numbers.

 

The component is made to dynamically change the number of items per row and all other necessary data to fit whatever width the container has. For example:

Capture2.PNG

 

My problem occurs when pushing and testing it on the model driven app, here is a screenshot:

Capture3.PNG

    As is visible, the items on the far right are cut off, with their full width represented in the black outline. There also is another item on each row that is completely invisible as the entire rectangle is cut off, also represented with the black outline.

 

As you can see, in this case the container's width is close to 775. Now if I test it locally with a container of width 775, I get this:

Capture4.PNG

Which is the expected result, with the items that would've initially been hidden are now shown. This is the same set of numbers, so you can see the 14 and 55 on the far right of the first and second rows that were invisible in the above picture.

Note that in both cases, the Items count per row, items width, container width and total items width are all the same, which leads me to believe there is a discrepancy between the visual width and calculated width provided to the component on a model driven app field.

 

Any help is appreciated.

 

I have the same question (0)

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard