Skip to content

RelativePanel Below and RightOf Arranges correctly, but LeftOf and Above doestn #437

Closed

Description

@danwalmsley

Describe the bug
A clear and concise description of what the bug is.

<RelativePanel Background="White" VerticalAlignment="Top" HorizontalAlignment="Left">
          <Rectangle Name="rect1" Height="20" Width="20" Fill="Red"   />
          <Rectangle Name="rect2" Height="10" Width="10" Fill="Yellow" RelativePanel.LeftOf="rect1" />
</RelativePanel>

Expected:
image

Actual:
image

same happens the the Yellow is above rect1.

Can be worked around but likely an easy fix.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • .net: [e.g. 4.6.2]
  • IDE [e.g. vs2017]
  • Version [e.g. 1.0.0]

Additional context
Add any other context about the problem here.

Activity

  1. NaBian commented on Jul 14, 2020

    @NaBian
    Member

    image
    we used the same codes and snap a screenshot, the App2 is uwp app, the other is wpf. the correct behaviour is to have no yellow rect, since which is pushed out of the panel.

    in the final analysis, there is something wrong in panel size rather than arrange process, tnx for your feedback. we'll deal with this
    issue later, and we need to do more tests.

  2. reopened this on Jul 14, 2020
  3. added a commit that references this issue on Mar 2, 2025
    25a6117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址