# 页面宽度导致在访问搜索/用户/汉堡包组合框时自动滚动到页面顶部（仅限 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:** 1

<div class="post-metadata">

作者： ![pettro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pettro/32/152260_2.png) [@pettro](https://meta.discourse.org/u/pettro)\
发布日期： [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/1 "2021-10-28T21:31:25Z")

</div>

使用社区版 [home-assistant.io](http://home-assistant.io) 搭配 Chrome 95.0.4638.54（官方构建版）（64 位）。遇到一个奇怪的问题，仅出现在我的家庭台式机上。工作台式机似乎正常，但我不知道其当前的 Chrome 版本。

问题描述：

点击搜索图标、汉堡菜单（三条垂直线）或您的用户图标时，页面会自动滚动到当前滚动条的顶部，而不是显示组合框。

该问题仅在组合框从屏幕右侧分离，导致组合框与垂直滚动条之间出现间隙时发生。这似乎出现在水平方向约 1350 像素（包含垂直滚动条）的位置。

![2021-10-28_17-29-14](https://global.discourse-cdn.com/meta/original/3X/0/0/0041e20a68c8f1b1a2f460d931d2aab57c48d7a8.gif)

编辑：仅当组合框处于分离状态且您位于页面顶部（第 1 条帖子）时，该问题才会出现：

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/5/3530e72982a652f72035af0ad937018d4c15ca1e.png)

少 3 像素……

![2021-10-28_17-30-50](https://global.discourse-cdn.com/meta/original/3X/3/2/322cc2426d14d76036048dddccb323bf12988996.gif)

---

_[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)._
