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 doesnt measure correctly when items are relative to each other and panel isnt stretched #433

Closed
danwalmsley opened this issue Jul 9, 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.Below="rect1" />
 </RelativePanel>

I expect:
image

however.... (provided cliptobounds=true)

I actually get...

image

This is because the measure is just looking for the largest object and not taking into account the positioning.

Probably needs to use the graph to measure also.

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 11, 2020

fixed, but more tests may be needed

@NaBian NaBian closed this as completed Jul 11, 2020
@NaBian NaBian added the 🐛 bug Something isn't working label Jul 11, 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

2 participants