WinUI-Gallery icon indicating copy to clipboard operation
WinUI-Gallery copied to clipboard

Navigating to TabView scrolls automatically scrolls to the bottom

Open gregwoo-microsoft opened this issue 4 years ago • 5 comments

Describe the bug When navigating to the TabView control, the page is automatically scrolled to the bottom.

Steps to reproduce the bug Go to the TabView control

Expected behavior Clicking on the control page should lead to the top of the page (not already scrolled to the bottom).

Version Info

  • [ ] Xaml Controls Gallery - Downloaded from Store
    • If so, which version? (1.2.x -- Found on the Settings page of the app.)
  • [ ] WinUI 3 Controls Gallery - Downloaded from Store
    • If so, which version? (1.3.x -- Found on the Settings page of the app.)
  • [ ] App built locally from source
    • If so, which branch? (WinUI 3 versions are built off the winui3 branch)

Additional context

Windows version:

  • [ ] Insider Build (xxxxx)
  • [ ] May 2021 Update (19043)
  • [ ] October 2020 Update (19042)
  • [ ] May 2020 Update (19041)
  • [ ] November 2019 Update (18363)
  • [ ] May 2019 Update (18362)
  • [ ] October 2018 Update (17763)
  • [ ] April 2018 Update (17134)
  • [ ] Fall Creators Update (16299)
  • [ ] Creators Update (15063)
  • [ ] Anniversary Update (14393)

Device form factor:

  • [ ] Desktop
  • [ ] Mobile
  • [ ] Xbox
  • [ ] Surface Hub
  • [ ] IoT

gregwoo-microsoft avatar Nov 08 '21 20:11 gregwoo-microsoft

Having looked into this and tried out some stuff for over an hour, I am very puzzled as to what the issue could be here.

marcelwgn avatar Nov 09 '21 18:11 marcelwgn

Thanks for looking into it Marcel. I am quite puzzled as well. I will try to spend more time looking into this.

gregwoo-microsoft avatar Nov 09 '21 18:11 gregwoo-microsoft

@stmoy You didn't happen to notice that behavior back when the page was created right?

marcelwgn avatar Nov 09 '21 18:11 marcelwgn

I think this is a new issue - I feel like I would have noticed when I created the page. Usually issues like this are related to focus being set further down the page - but it looks like initial focus is on the first TabView's "+" button. It's a mystery. This might be an underlying WinUI issue.

stmoy avatar Nov 09 '21 23:11 stmoy

I am fairly certain that this is an issue with the TabView loading tabs and and as such grabbing focus somehow. This is probably better suited for the WinUI repo.

marcelwgn avatar Jul 05 '23 19:07 marcelwgn