# Oneboxed Google Docs break scroll position

**URL:** <https://meta.discourse.org/t/oneboxed-google-docs-break-scroll-position/28919>\
**Category:** Bug\
**Created:** [17 Maggio 2015, 6:11pm UTC](https://meta.discourse.org/t/oneboxed-google-docs-break-scroll-position/28919 "2015-05-17T18:11:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Mikulas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikulas/32/104867_2.png) [@Mikulas](https://meta.discourse.org/u/Mikulas)\
**Post date:** [17 Maggio 2015, 6:11pm UTC](https://meta.discourse.org/t/oneboxed-google-docs-break-scroll-position/28919/1 "2015-05-17T18:11:54Z")

</div>

It seems that embedding Google docs results in a page scrolling automatically to top.

I was only able to reproduce this on all latest browsers on Yosemite. It does not happen always (but still in a majority of tries) and seems to be based on how quickly the embedded content loads.

Steps to repro:

1. create a post below the page fold with a link to Google spreadsheet
2. get the persistent link to the post and open the page
3. the page should load and be correctly scrolled (embedded content not loaded yet)
4. embedded content loads and another scroll is triggered

What should happen is the page should be scrolled to correct position.  
Instead the page is scrolled to the top of the page currently loaded (not the first post if the thread is long).

Demo: open in new tab, clicking it would not result in reload and the bug would not trigger

```
https://meta.discourse.org/t/oneboxed-google-docs-break-scroll-position/28919/2

```

---

_[View the full topic](https://meta.discourse.org/t/oneboxed-google-docs-break-scroll-position/28919)._
