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 does not measure correct size in certain configuration #431

Closed
danwalmsley opened this issue Jul 8, 2020 · 2 comments
Closed
Labels
🐛 bug Something isn't working

Comments

@danwalmsley
Copy link
Contributor

Describe the bug
A clear and concise description of what the bug is.
Expected behavior (according to UWP) is that relativepanel sizes to the content, unless alignment = stretch.

<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.AlignBottomWithPanel="True" />
          </RelativePanel>

in uwp this produces..
image

but in HandyControl.RelativePanel we get...
image

The issue is that Measure does not create a graph and calculate the correct size.

So arrange tells the graph is has the available space.

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.

@danwalmsley
Copy link
Contributor Author

btw im not just an issue filer, with some direction or pointers I could submit a PR.

@NaBian NaBian added the 🐛 bug Something isn't working label Jul 8, 2020
NaBian added a commit that referenced this issue Jul 8, 2020
@NaBian
Copy link
Member

NaBian commented Jul 8, 2020

fixed

@NaBian NaBian closed this as completed Jul 8, 2020
@NaBian NaBian reopened this Jul 11, 2020
@NaBian NaBian closed this as completed in b690906 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