-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix AdaptiveGridView OneRowMode height #1614
Fix AdaptiveGridView OneRowMode height #1614
Conversation
Looks like the behavior has changed with this change. The panel will now take up all the vertical space in one row mode (in the image above the scrollbar is right beneath the images). I have to add It's also still clipping by 4 pixels (better than the 14 before though). You can check by changing the border thickness in the template to 5 and Red: You can see the collapsed scrollbar at the bottom-left without the added vertical alignment. |
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.
As per above, forgot to make it an actual review, as it was behavioral. Looks like there's a bit more going on here than the simple height change.
ping @skendrot |
Looks like the border being cut off is from the GridViewItem style being applied
Setting the Margin to 0 shows the entire element. |
I have a solution that allows for the same ScrollBar behavior as before, but allows to see the entire item. It involves an internal ValueConverter for the MaxHeight binding. Thoughts on this direction?
|
Looks like you need to update the headers on the new file |
ping @michael-hawker for his review |
ping @michael-hawker |
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.
Sorry for the delay on this, been swamped the last bit.
Minor thought on access, but tested it out and looks great!
|
||
namespace Microsoft.Toolkit.Uwp.UI.Controls | ||
{ | ||
internal class AdaptiveHeightValueConverter : IValueConverter |
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.
If someone wants to adapt the adaptive grid view, won't they need access to this?
Should we instead make it public but in a sub-namespace like Microsoft.Toolkit.Uwp.UI.Controls.AdaptiveGridView
?
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.
I don't see any reason it needs to be public. It's used within a private method. Can always open it at a later date
This PR is linked to unclosed issues. Please check if one of these issues should be closed: #1613 |
Issue: #1613
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Height of the items does not match the requested height
PR Checklist
Please check if your PR fulfills the following requirements:
What is the new behavior?
Height of items should now match the requested height
Does this PR introduce a breaking change?
Other information