搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Fixed page position when resizing window

more options

Hi!

I'm one of the Chromium users that now gladly switched back to Firefox but I have one very annoying problem/bug:

> When I resize the window, the position on the page changes highly.

My scenario is the following: I use a tiling window manager and often open up a console while browsing. When the screen splits and the Firefox window then effectively halves, it jumps somewhere not even near on the page and I always have to scroll back. When I close the console again, everything happens in reverse.


Thanks a lot! Stephan

Hi! I'm one of the Chromium users that now gladly switched back to Firefox but I have one very annoying problem/bug: > When I resize the window, the position on the page changes highly. My scenario is the following: I use a tiling window manager and often open up a console while browsing. When the screen splits and the Firefox window then effectively halves, it jumps somewhere not even near on the page and I always have to scroll back. When I close the console again, everything happens in reverse. Thanks a lot! Stephan
附加的畫面擷圖

由 smoneck 於 修改

所有回覆 (2)

more options

Confirmed on bugzilla. Question can now be neglected here.

more options

This is a more general problem that can be observed when you resize a window by hand. Firefox maintains a vertical scroll position which seems to be a number of pixels from the top of the page. If resizing the window reflows the page content, you can end up looking at a different spot.

This also occurs during initial page load when Firefox computes the location of the anchor/hash but changes occur above that point which affect the vertical position of the anchor/hash. These include retrieving inline images that turn out to have an unexpected height, or removing images, for example, by collapsing several images into a slideshow widget.

Accordingly, it's possible your bug will be duped to an older bug.

I'm hopeful this all can be handled once and for all by some approach that recognizes that users care most about the content in the viewport, not the vertical position of the scrollbar (unless the position is top or bottom).

由 jscher2000 - Support Volunteer 於 修改