dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.24k stars 1.76k forks source link

Buttons in some pages of a TabbedPage don't grow and instead clip their content #9575

Open rmotta01 opened 2 years ago

rmotta01 commented 2 years ago

Description

Buttons in some pages of a TabbedPage don't grow and instead clip their content.

Steps to Reproduce

  1. Open the TabbedPage sample from the Maui samples repo in Visual Studio. https://github.com/dotnet/maui-samples/tree/main/6.0/Navigation/TabbedPage
  2. Run the app in the Android Emulator. I'm using "Pixel 3a - API 31 (Android 12 -API 31)"
  3. Click the button on each tab page, some of the Buttons will clip the text instead of adjusting their width.

Version with bug

6.0.486 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 12

Did you find any workaround?

No response

Relevant log output

No response

ghost commented 2 years ago

Hi @rmotta01. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. 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.

mattleibow commented 2 years ago

Thanks for this issue @rmotta01, I am not sure the we 100% understand what you are seeing, so if you could attach a screenshot to the issue of where the issue lies - you mention button but I also feel you may be talking about the tab header?

rmotta01 commented 2 years ago

image

The text in the button should be "Clicked 1 time".

ghost commented 2 years ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

Zhanglirong-Winnie commented 1 year ago

Verified this issue with Visual Studio Enterprise 17.6.0 Preview 7.0. Repro on Android platform with sample project. https://github.com/dotnet/maui-samples/tree/main/6.0/Navigation/TabbedPage AA

davidortinau commented 1 year ago

The ScrollView isn't resizing as content changes. This is similar to other issues raise and can be worked around by:

a. (ScrollContainer as IView).InvalidateMeasure(); OR b. remove the ScrollView in cases like this sample where it's not necessary

Screenshot_1688667998