-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Account for spacing when determining available space for star rows/columns #3871
Conversation
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
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.
AFAICT this doesn't fix the issue :(
https://drive.google.com/file/d/1xb5FGcZ7CFrYgcocV5VQpfkUqfyAZ30n/view?usp=sharing
I don't think this has to do with the * as much as it has to do with Auto
Can you post the test project you used for your video? |
I put this sample code directly in my local version of the control gallery sample: <views:BasePage
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Maui.Controls.Sample.Pages.GridPage"
xmlns:views="clr-namespace:Maui.Controls.Sample.Pages.Base"
Title="Grid">
<views:BasePage.Content>
<GridLayout RowDefinitions="Auto,*, Auto">
<Label Text="First label" />
<StackLayout GridLayout.Row="0" x:Name="layoutSample" />
<Button GridLayout.Row="1" Text="Add control" Clicked="Button_Clicked" Margin="0" Padding="20"/>
</GridLayout>
</views:BasePage.Content>
</views:BasePage> using Microsoft.Maui.Controls;
namespace Maui.Controls.Sample.Pages
{
public partial class GridPage
{
public GridPage()
{
InitializeComponent();
}
private void Button_Clicked(object sender, System.EventArgs e)
{
layoutSample.Children.Add(new Label() { Text = "random label", HeightRequest = 100 });
}
}
} It uses |
@rachelkang I think your test XAML has some errors. Both the Also, the issue doesn't appear unless the Grid has RowSpacing or ColumnSpacing greater than zero (depending on whether you're reproducing it vertically or horizontally). |
…e for star rows/columns Fixes #3853
Fixes #3853
Fixes #3545