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 / Mouse or Button Position
Power Apps
Answered

Mouse or Button Position

(3) ShareShare
ReportReport
Posted on by 226 Moderator
Morning All,
 
I am trying to design an interactive status for a Project Management app. 
 
There is a gallery that shows approx. 10 items at a time.  There is a button for each of the gallery items, when clicked it triggers an UpdateContext() that triggers an action that displays other objects that are covering the current screen to allow the User to change the Status.  The problem is the pop-up status update only 7 radio buttons and I need to cover the entire screen (really ugly and not user friendly).
 
What I want to do it capture the position (X, Y) of the button or mouse so I can dynamically place a much smaller pop-up on screen.
 
Any suggestions? Cheers
Categories:
I have the same question (1)
  • Suggested answer
    mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at
    hey
     
     
    as of my knowledge there is no way to get the exact  positions of controls in powerapps.
     
     
    if you want to show pop ups simply follow videos like this:
     
     
     
    if my answer helped please mark as verified
     
     
     
    cheers
  • Hack-7 Profile Picture
    226 Moderator on at
    Thanks for the suggestion, I am very familiar on using variables to trigger pop-ups in PowerApps.  I do not want a pop-up that covers the entire screen.
     
    My idea is more to have a pop-up that will will be placed in a different (X, Y) position depending on where the selection is being clicked.
     
    All of this so the users will have a better experience.
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at
    hey
     
     
    i havent seen a way how you could do this. the only thing that comes to my mind is to "hard code" it and move the popup where u want it.
     
    that would mean, that you can not reuse the popup on another place of the app.
     
    what you can maybe try is to set a variable for a button you click and then set the x and y property of the popup based on the variable.
     
     
    if my answer helped please mark as verified answer
     
     
    cheers
  • Verified answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    Hey, there’s actually a solid way to handle this! 😎

    Just like you said — you can use a variable to store the X and Y coordinates of the clicked button. Then, use those coordinates to position your pop-up dynamically.

    Here’s how you can do it:

    UpdateContext({
    popupX: Self.X,
    popupY: Self.Y + Self.Height
    });

    Then just set the X and Y of your popup component like this:

    X: popupX,
    Y: popupY

    This way, your pop-up will show up right next to the button that was clicked — much cleaner and user-friendly! 🫡

    Let me know if you need help refining the placement further or keeping it within screen bounds.

     

    If this solved your problem, please mark it as Solved to help others find the solution faster.
    If you found it helpful, consider giving it a Like to support each other in this community!

    Thanks, and happy building!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 915

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 457

Last 30 days Overall leaderboard