[UI Defect] Chat Scroll Anchor Lost on Viewport Resize (Gemini Web)

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 scrollTop to 0.

Environment:

  • Product: Gemini Web (gemini.google.com)

  • Behavior: UI Layout / Scroll Management

  • Severity: Low (UI/UX Impairment)

Steps to Reproduce:

  1. Open a chat and generate enough content to make the page scrollable (approx. 6+ prompts).

  2. Scroll to the bottom of the conversation to view the latest response.

  3. 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 ResizeObserver logic or a missing overflow-anchor: auto; CSS property on the main chat container. The scroll state is not being persisted during the window’s onresize event.

Evidence:

Proposed Cause: The scrollTop value appears to be defaulting to 0 during the re-rendering process triggered by the resize event.