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

TabControl seemingly does not maintain per-tab scroll position #4758

Closed
PathogenDavid opened this issue Sep 28, 2020 · 3 comments
Closed

TabControl seemingly does not maintain per-tab scroll position #4758

PathogenDavid opened this issue Sep 28, 2020 · 3 comments
Labels
by-design The behavior reported in the issue is actually correct.

Comments

@PathogenDavid
Copy link
Contributor

Environment

Observed with XamlControlsGallery (with a slightly modified version to use the latest Avalonia CI build.)

Windows 10 2004

Steps to reproduce

  1. Launch the app
  2. Go to the Date and Time page
  3. Scroll down to the bottom
  4. Switch to the Layout page

Expected behavior

The page starts out at the top

(This is the behavior if you go straight to the Layout page.)

image

Actual behavior

The page is already scrolled down slightly

image

@PathogenDavid
Copy link
Contributor Author

Consider fixing #4759 before this one because this bug (probably) makes it easier to reproduce.

@Gillibald
Copy link
Contributor

https://github.com/AvaloniaUI/XamlControlsGallery/blob/29548cf16f518d03472bf96f5a60f9ceadc01074/XamlControlsGallery/Styles/SideBar.xaml#L36

This has nothing to do with the TabControl directly. This is more of an issue withe the custom template. The TabControl'S content is wrapped inside a ScrollViewer and that is shared by all tabs. So to get your desired behavior the ContentTemplate needs to use a ScrollViewer instead.

@PathogenDavid
Copy link
Contributor Author

Ah, I actually looked for that in the DevTools window but I guess I missed it. This issue should probably be move to the XamlControlsGallery repo then.

@maxkatz6 maxkatz6 added the by-design The behavior reported in the issue is actually correct. label Jun 27, 2024
@maxkatz6 maxkatz6 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
by-design The behavior reported in the issue is actually correct.
Projects
None yet
Development

No branches or pull requests

3 participants