Title: [BUG] Viewport Scroll Anchor Reset on Window Resize - Gemini Web UI
Body:
Summary: I am reporting a front-end regression in the Gemini web interface where the scroll position is lost during a window resize event. The container fails to maintain its anchor at the bottom of the conversation, defaulting the
scrollTopto 0.Environment:
Product: Gemini Web (gemini.google.com)
Behavior: UI Layout / Scroll Management
Severity: Low (UI/UX Impairment)
Steps to Reproduce:
Open a chat and generate enough content to make the page scrollable (approx. 6+ prompts).
Scroll to the bottom of the conversation to view the latest response.
Resize the browser window (e.g., drag the edge or toggle between windowed/maximized).
Actual Result: The chat window immediately jumps to the very beginning of the conversation history (Prompt #1).
Expected Result: The chat window should maintain its scroll anchor at the bottom of the thread or the last visible message during the layout reflow.
Technical Observation: This appears to be a failure in the
ResizeObserverlogic or a missingoverflow-anchor: auto;CSS property on the main chat container. The scroll state is not being persisted during the window’sonresizeevent.Evidence:
Proposed Cause: The
scrollTopvalue appears to be defaulting to 0 during the re-rendering process triggered by the resize event.
