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

Tab selection does not work when moved to a different window #532

Open
tejs-code opened this issue Mar 4, 2024 · 1 comment
Open

Tab selection does not work when moved to a different window #532

tejs-code opened this issue Mar 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@tejs-code
Copy link

Describe the bug
Repro from the sample app
Select 'Launch' from the TabView windowing sample
Drag Tab2 out so it opens in new window
Drag Tab3 out so it opens in new window
Drag Tab3 into Tab2's window.

The UI appears correct, showing Tab3 and Tab2 in the same window, but selecting Tab2 does not bring the content into view.
If you drag Tab2, the content becomes visible.

Debugging shows the OnPointerPressed in avalonia's ListBoxItem.cs returns early because ItemsControl.ItemsControlFromItemContaner believes the tab's parent is still the original listitem.

Screenshots
Tab-Bug

Desktop/Platform (please complete the following information):

  • OS: Windows 11
  • FluentAvalonia Version latest
  • Avalonia Version 11.0.9

Additional context
Add any other context about the problem here.

@tejs-code tejs-code added the bug Something isn't working label Mar 4, 2024
@amwx
Copy link
Owner

amwx commented Apr 18, 2024

Can't repro this in the 2.1 branch (preview), so it may have been an issue upstream with ItemsControl and fixed in Avalonia 11.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants