Skip to content
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

Unexpected behavior with the latest Avalonia Render #9975

Closed
laolarou726 opened this issue Jan 13, 2023 · 13 comments
Closed

Unexpected behavior with the latest Avalonia Render #9975

laolarou726 opened this issue Jan 13, 2023 · 13 comments

Comments

@laolarou726
Copy link
Contributor

Describe the bug

The new render failed to display elements with size changes when using animation. It will cause elements to disappear on the screen.
Also, the control elements seem failed to deal with size change, and the elements that should stay on the screen will be removed after the animation is ended.

To Reproduce
Steps to reproduce the behavior:

  1. Create a basic UI element with text and some size change animations.
  2. Run the application

Expected behavior

All the elements should show correctly.

Screenshots

record1

As you can see, the purple region should stay on the screen. However, it has been removed after the animation ended.

record1

Desktop (please complete the following information):

  • OS: Windows 11
  • Version: 22H2
@maxkatz6
Copy link
Member

Is it the latest nightly? Can you provide a minimal sample project?

@laolarou726
Copy link
Contributor Author

Is it the latest nightly? Can you provide a minimal sample project?

Just created a repro: Github Repo

@lukaszossowski
Copy link

lukaszossowski commented Jan 14, 2023

This seems to be happening all across the board when resizing Window for example. Text flickers, disappears, reappears. I am on Preview 4. Upper image shows the state after resizing the Window and lower after reloading the page.

moved
proper

It might have something to do with layouting. The first column (name) has horizontalalignment left but you can see that on the broken picture they are not aligned properly.

@Numpsy
Copy link

Numpsy commented Jan 15, 2023

fwiw, I was having a go at building Avalonia.FuncUI with the nightly builds to get up to date with the latest changes, and I noticed that their control catalog app has these sort of issues when resizing the window horizontally (resizing vertically seems ok).
It seems ok with the Preview4 build.

@robloo
Copy link
Contributor

robloo commented Jan 16, 2023

I've now seen this issue in the Expander control in ControlCatalog. Sometimes the expander, when it opens, will not show any expanded content. That might be a good place to find the root cause.

@danielmayost
Copy link
Contributor

In fact, the problem can be reproduced in a simple way:
in ControlCatalog change the theme to FluentDark and then click somewhere within the window.

it's happens also when i change FlowDirection.

@mhmd-azeez
Copy link

Hi, I have hit the same issue when using FlowDirection=RightToLeft.

https://user-images.githubusercontent.com/16880059/213157314-94a016dd-f7c7-4e6e-be46-34c514885184.mp4
AvaloniaApplication2.zip

Please see the attached video and the minimal repro

@danielmayost
Copy link
Contributor

yes, but it's not issue with FlowDirection but the new renderer.

@mhmd-azeez
Copy link

@danielmayost is this a known bug or should I file a new issue for it?

@danielmayost
Copy link
Contributor

this is the bug reported in current issue, i no think you need open new issue.

@danielmayost
Copy link
Contributor

danielmayost commented Jan 22, 2023

i can't reproduce with latest master, seems the my problem is solved, @laolarou726 can you test it?

@maxkatz6
Copy link
Member

Yes, text rendering issue was fixed with #10015

@laolarou726
Copy link
Contributor Author

Yes. The issue was fixed! Thank you guys so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants