页面宽度导致在访问搜索/用户/汉堡包组合框时自动滚动到页面顶部(仅限 Chrome)

Using community.home-assistant.io w/ chrome Version 95.0.4638.54 (Official Build) (64-bit). Having an odd issue, only present on my home desktop. Work desktop appears to be fine, however I don’t know the current chrome version.

This issue:

Clicking on search, hamburger (3 vertical lines), or your user icon, the page auto scrolls to the top of the current scrollbar instead of exposing the combobox.

The issue only occurs when the combobox detaches from the right side of the screen so that there would be a gap between the combobox and the vertical scroll bar. This appears to be somewhere around 1350 pixels in x including the vertical scroll bar.

2021-10-28_17-29-14

EDIT: The only way it will appear when the combobox is detached is when you’re at the top of the page (Post 1):

3 pixels less…

2021-10-28_17-30-50

Unless you can repro it here, or on try.discourse.org, almost certainly an issue with your CSS theming and layout. Also try in safe mode.

1 个赞

happens here too.

2021-10-28_17-37-26

1 个赞

Also happens in safe mode

I am having trouble reproducing this, what are the specific steps? I have a super wide browser, I am scrolled down in this topic and I am clicking on the avatar and it isn’t scrolling to top?

There’s really not much to it. Just widen your browser. For what it’s worth, this is not happening in Edge on the same PC. Only chrome.

Dev tools in safemode turn up empty outside message that may or may not be related:

Do you have any browser extensions? Can you try in an incognito window?

1 个赞

Recategorizing as support until at least one other person can repro this. I definitely can’t, and I am on Chrome/Windows.

Happens in incognito as well.

FYI, running the 2.8.0.beta7

Other last bit of info, this 100% started after a scheduled windows update and reboot. On win10Pro OS Build 19042.1288 Experience 120.2212.3920.0.

I’m up to date on Windows / Chrome as well

I have sized the window so many different ways and I can’t repro this…

You have links to setup a development server where I can debug into the issue? Is it typically setup through vscode or vs?

We had someone reporting the same.
Version 95.0.4638.54 (Offizieller Build) (64-Bit)
He also tried to use the keyboard shortcuts, but the problem was the same.

I’m also seeing the same behaviour in Chrome but not Firefox

I’m willing to try anything and I’ve been developing for years now. This bug is annoying the crap out of me, any direction/link/whatever towards finding the root cause of this issue would be welcomed seeing that you can’t reproduce it.

I updated Chrome on my desktop today and started seeing this issue. This should fix it.

There’s more details in the PR description. The fix is now live on Meta.

6 个赞

我对此进行了更多了解,并设法追踪到了问题。这个 bug——以及其他几个与 CSS sticky 相关的 bug——只有在 Chrome 标志中启用了“实验性 Web 平台功能”时才会出现。这解释了为什么只有一部分人遇到了这个问题,尽管他们使用的是相同版本的 Chrome。

如果你遇到了这个问题,请确保在此处禁用它:

chrome://flags/#enable-experimental-web-platform-features

我已经发送了一个 PR 来撤销上述更改,因为它不再是必需的。

4 个赞