-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix: RelativePanel calculation error with extensible and aligned child #19474
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
Conversation
You can test this PR using the following package version. |
|
@cla-avalonia agree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution!
This PR needs a matching unit test, failing before the changes and passing after.
I recommend using a standard element such as a Border
as the child for that test.
OK, I will try it. |
The ScrollViewer's scrollbar does not display correctly.
b2e3343
to
ee142ff
Compare
You can test this PR using the following package version. |
The ScrollViewer's scrollbar does not display correctly.
14b0780
to
dcaff98
Compare
You can test this PR using the following package version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
What does the pull request do?
Fix the problem:
The DataGrid's scroll bar does not display correctly.
What is the current behavior?
Can not see the last item of DataGrid and horizontal scrollbar.
Decrease width, all scroll bar are lost.
What is the updated/expected behavior with this PR?
MainWindow.axaml
andMainWindowViewModel.cs
as follwing code:How was the solution implemented (if it's not obvious)?
Original logic
In this step,
availableHeight
's value is wrong.availableHeight
=TotalHeight
=Area1.Height + RemainArea.Height
Midified logic
availableHeight
's value is right.availableHeight
=TotalHeight - Area1.Height
=RemainArea.Height
Other thing
I modified the code in the branch
release/11.3.4
and cherry-picked the commit to themaster
branch;because I can not run a program on master branch, I do not know how to solve the compile exception.
Result
Checklist
Breaking changes
No.
Obsoletions / Deprecations
No.
Fixed issues