Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
danwalmsley opened this issue Jul 13, 2020 · 1 comment
Labels
🐛 bug Something isn't working

Comments

@danwalmsley
Copy link
Contributor

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.

@NaBian
Copy link
Member

NaBian commented Jul 14, 2020

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.

@NaBian NaBian closed this as completed Jul 14, 2020
@NaBian NaBian reopened this Jul 14, 2020
@NaBian NaBian closed this as completed in 25a6117 Jul 14, 2020
@ghost1372 ghost1372 added the 🐛 bug Something isn't working label Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants