# 在封装 Discourse 时覆盖层位置错误

**URL:** <https://meta.discourse.org/t/overlays-misplaced-when-wrapping-discourse/130115>\
**Category:** Development\
**Created:** [2019 年10 月 3 日 09:26 UTC](https://meta.discourse.org/t/overlays-misplaced-when-wrapping-discourse/130115 "2019-10-03T09:26:18Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![p0fi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/p0fi/32/261315_2.png) [@p0fi](https://meta.discourse.org/u/p0fi)\
发布日期： [2019 年10 月 3 日 09:57 UTC](https://meta.discourse.org/t/overlays-misplaced-when-wrapping-discourse/130115/3 "2019-10-03T09:57:06Z")

</div>

问题在于，基本上所有覆盖层的位置都错了。我并不想重写所有可能存在的覆盖层的每一个定位方法。

在示例图片中看起来还可以，因为浏览器窗口没有全屏。通常侧边更大，因此错位更严重。有些覆盖层几乎已经移出屏幕了。

---

_[View the full topic](https://meta.discourse.org/t/overlays-misplaced-when-wrapping-discourse/130115)._
