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 / Power Apps Embedded in...
Power Apps
Unanswered

Power Apps Embedded in SharePoint — Dynamic Height Not Working

(0) ShareShare
ReportReport
Posted on by 9

Hi everyone,

I'm currently embedding a Power Apps Canvas App into a SharePoint Online page using the Power Apps web part. The app displays a variable number of events (e.g., birthdays, meetings), and I’ve implemented logic in Power Apps to dynamically adjust the screen height based on the content:

Screen.Height = Max(
    App.MinScreenHeight,
    If(
        CountRows(AllUpcomingEvents) = 0 && CountRows(AllTodayEvents) = 0,
        127,
        If(
            CountRows(AllUpcomingEvents) = 0,
            CountRows(Today.AllItems) * Today.TemplateHeight + 49,
            CountRows(Today.AllItems) * Today.TemplateHeight + 49 +
            Sum(
                ["Birthday", "Anniversary", "Out of Office", "Flex", "Staff Meeting"],
                If(
                    CountRows(Filter(AllUpcomingEvents, Category = ThisRecord)) > 0,
                    60 + 168,
                    0
                )
            )
        )
    )
)

This works perfectly inside Power Apps Studio — the height adjusts as expected when events are added or removed.

But here’s the issue:

Once the app is embedded into SharePoint, the height becomes fixed and does not shrink or grow with the content. Even when there are no events to show, the web part keeps a large empty space. It seems SharePoint doesn't respect the dynamic height and instead applies a static iframe height.

My goal:

I want the app to shrink or grow dynamically based on the number of items, so it doesn’t leave large empty space on the SharePoint page.

Has anyone successfully implemented a fully responsive height experience for embedded Power Apps?

Would love to hear any workarounds, examples, or even limitations you've found! Open to ideas, including code-based solutions if needed.

Thanks in advance!


Categories:
I have the same question (0)
  • Suggested answer
    stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    I suggest that post this to Sharepoint community.
     
     
    Below could be useful for you 
  • KM-18050647-0 Profile Picture
    3 on at
    @stampcoin,
    Thank you for your response. I already posted this issue in the SharePoint Community, and for using a React-enhanced Power Apps integration. Do you happen to have a working example or a build of that app?

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard