unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
9.05k stars 734 forks source link

[Android 10 Api 29] Text of TextBlock inside modal appears for 1 second and disappears after #13625

Closed Lee31416 closed 2 weeks ago

Lee31416 commented 1 year ago

Current behavior

We have a modal with 1 icon 2 textblock and 1 button. When opening the modal while logged in our app everything displays fine and the text appears as it should but when doing the same thing when not logged in the text appears and then disappears.

image

Expected behavior

The content of the modal should appears and stays where its at.

image

How to reproduce it (as minimally and precisely as possible)

  1. Create an App with account logic
  2. Open a modal after login validation but before showing the next page.
  3. Emulate the app on Android 10 Api 29
  4. Observe that the text in the middle of the page disappears while the top and bottom content doesn't budge.

Workaround

I googled and found that in winui the textblock doesn't have a background property anymore the workaround that fixes this issue is giving the textblock a border with a background color different then transparent.

Works on UWP/WinUI

Yes

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

4.10.13

Affected platforms

Android

IDE

Visual Studio 2019

IDE version

17.6.2

Relevant plugins

No response

Anything else we need to know?

No response

jeromelaban commented 1 year ago

Thanks for the report.

Make sure to include a repro sample so we're looking at the same behavior.

Lee31416 commented 1 year ago

@jeromelaban For the time being, we don't have the time to create a sample because it would be quite complicated and require a couple hours to do so. Maybe in the future we will create one and send it but for now that's all we can give for this issue. I'd be happy to answer any questions if it helps

jeromelaban commented 1 year ago

Thanks. Unfortunately, without a repro we're not able to investigate the issue further on our side.

What you can do is try to alter your application to see what can trigger this behavior by changing the XAML, such as changing properties, removing parents, changing animations, changing backgrounds, changing content and so on, in order to determine more precisely what can create this behavior.

Youssef1313 commented 1 year ago

Another thing to try is to at least understand why it disappears. Is it that Text is set to string.Empty somehow? If you hook into TextChanged event, are you able to see it being triggered with NewValue being empty? If so, the stack trace for that may help.

MartinZikmund commented 1 year ago

@Lee31416 Any further information you could provide us here please?

Lee31416 commented 1 year ago

Didn't have time to work on doing a sample for this since. Sorry

github-actions[bot] commented 2 weeks ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. We don't monitor discussions on closed issues thus please open a new GitHub issue if you need the team to revisit this matter.