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 / Allignment issues with...
Power Apps
Answered

Allignment issues with container and data table

(0) ShareShare
ReportReport
Posted on by 36

Hello All, I am trying to implement  sorting functionality on a data table, The table is in a horizantal container and the sort icons are out side of the container, positioned on top of the table header(unable to place the icons in desired place if we keep it in inside of the container), The sort function works fine but the icons are misalligned if i zoom in/out my browser, i think the root cause of the issue is the icons are placed out side of the container, I wonder if anyone faced this issue and have a resolution or work around

 

 

container allignment issue 2.png
container allignment issue 3.png
container allignment issue 1.png
Categories:
I have the same question (0)
  • Verified answer
    madlad Profile Picture
    2,637 Moderator on at

    Hi!

     

    Trying to navigate placing these on the same height as items within multiple containers can be tricky. The best way to do it is to reference the item you want it to be in front of, and it's parents.

     

    You should be able to get it on the right height with something like:

     

    MainContainer.Y + TicketsContainer_2.Y + DataTable3.Y

     

    ^Not 100% sure this is the most efficient way to get this, but it should work.

     

    If it's off on the X-axis, follow a similar rule there, just referencing the item you want it to be in front of, and it's parents.

     

    Hope this helps!

  • anipeddi Profile Picture
    36 on at

    Awesome! this perfectly worked for me, I really appreciate your help.

  • anipeddi Profile Picture
    36 on at

    Just noticed that the solution worked and the icons alligned properly when zoom in/out the browser but if we do the horizantal scroll, the allignment breaks, Do you think i have to mantain the relative potion of X as well to fix this?

    allignment issue horizantal scroll.jpg
  • anipeddi Profile Picture
    36 on at

    Here are the X values i am using: Some reasons the icons are moving along with horizantal scroll bar, Am i missing anything? 

    MainContainer.X+TicketsContainer_2.X+DataTable3.X
    MainContainer.X+TicketsContainer_2.X+DataTable3.X+400


    MainContainer.X+TicketsContainer_2.X+DataTable3.X+1134

  • madlad Profile Picture
    2,637 Moderator on at

    @anipeddi 

    Unfortunately I don't think you can reference horizontal scroll like this.

    You can reference the table column's X values, but those don't change when it's scrolled unfortunately.

     

    Maybe someone else knows a way to achieve this result, but I'm fairly sure it's not possible with the existing tools unfortunately

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard