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

**URL:** <https://meta.discourse.org/t/width-of-page-causes-an-autoscroll-to-the-top-of-the-page-when-accessing-serach-user-hamburger-comboboxes-chrome-only/207459>\
**Category:** Product Support\
**Created:** [2021 年10 月 28 日 21:31 UTC](https://meta.discourse.org/t/width-of-page-causes-an-autoscroll-to-the-top-of-the-page-when-accessing-serach-user-hamburger-comboboxes-chrome-only/207459 "2021-10-28T21:31:25Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

作者： ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
发布日期： [2021 年11 月 6 日 12:12 UTC](https://meta.discourse.org/t/width-of-page-causes-an-autoscroll-to-the-top-of-the-page-when-accessing-serach-user-hamburger-comboboxes-chrome-only/207459/18 "2021-11-06T12:12:42Z")

</div>

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

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

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

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

---

_[View the full topic](https://meta.discourse.org/t/width-of-page-causes-an-autoscroll-to-the-top-of-the-page-when-accessing-serach-user-hamburger-comboboxes-chrome-only/207459)._
