Skip to content

Entry tab "stretching" bug. #15783

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

Closed
Rickter-Darkaster opened this issue Jun 22, 2023 · 4 comments
Closed

Entry tab "stretching" bug. #15783

Rickter-Darkaster opened this issue Jun 22, 2023 · 4 comments
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter layout-grid partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android platform/windows s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version t/bug Something isn't working

Comments

@Rickter-Darkaster
Copy link

Rickter-Darkaster commented Jun 22, 2023

Description

I described the issue in full detail in the following .NET q/a page with images and everything;

https://learn.microsoft.com/en-us/answers/questions/1315087/problem-with-the-entry-bar-after-adding-a-(collect?page=1#answer-1274789

After adding the <CollectionView.ItemTemplate> into the code, the entry tab and button sizes change unexpetedly.
The Entry tab "stretches out" when writing a long string inside. Shrinking the button next to it, even smaller than the preset size.

Steps to Reproduce

  1. Create a MAUI project/Solution.
  2. Make a grid in the file' "MainPage.xaml". Adding at least two (2) Columns, One bigger than the other. And two (2) rows.
  3. Add an Entry tab in the first column & a button on the second column. All on the first row.
  4. Add a "< CollectionView >" that has the property; Grid.ColumnSpan="2" (add a <CollectionView.ItemsSource> inside and add a random list of strings) on the second row.
  5. add a <CollectionView.ItemTemplate> that includes a grid. As soon as you add an element inside the grid (Frame, Label), or giving the grid the "Padding" or "Margin" properties and assign anything but zero (0) to them, the bug will occur.
    6)The Entry tab & button sizes above the "< CollectionView >", on the first row will be modified.
    7)When writing a long string on the Entry tab, this one "stretches" to a certain point. Getting bigger, while the button gets smaller.

Link to public reproduction project repository

https://github.com/Rickter-Darkaster/MAUI-CollectionView.ItemTemplate-ColumnSpan-bug

Version with bug

7.0.86

Last version that worked well

6.0

Affected platforms

Android, Windows, I was not able test on other platforms

Affected platform versions

Windows Machine 10.0.190410 and Android 13.0

Did you find any workaround?

-When you remove the grid properties "Padding" or "Margin" and all the elements inside the grid of the <CollectionView.ItemTemplate>. The bug goes away (Not very useful though, cause you won't see anything being displayed).

-When you remove the Grid.ColumnSpan="2" from the whole "< CollectionView >", the bug disappears entirely. But the grid given will only span the first column..... So there's a downside but it is a temporary fix.

Relevant log output

No response

@Rickter-Darkaster Rickter-Darkaster added the t/bug Something isn't working label Jun 22, 2023
@jsuarezruiz jsuarezruiz added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Jun 22, 2023
@mattleibow mattleibow added this to the Backlog milestone Jun 22, 2023
@ghost
Copy link

ghost commented Jun 22, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@mattleibow
Copy link
Member

@hartez thoughts? Maybe this is fixed in your backports?

@Dhivya-SF4094
Copy link
Contributor

The issue could not be reproduced in .NET MAUI version 9.0.60 on all platforms.

15783_Current.mov

@vishnumenon2684 vishnumenon2684 added partner/syncfusion Issues / PR's with Syncfusion collaboration s/try-latest-version Please try to reproduce the potential issue on the latest public version labels May 15, 2025
Copy link
Contributor

Hi @@Rickter-Darkaster. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@dotnet-policy-service dotnet-policy-service bot removed this from the Backlog milestone May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter layout-grid partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android platform/windows s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants