Skip to content

AdaptiveService does not emit size change on first browser maximize #4833

@zstoyanova9

Description

@zstoyanova9

Description

The AdaptiveService fails to emit a size change on the first maximize action performed on the browser window after initial page load. Subsequent maximize actions work correctly.
This issue is only reproducible on Windows machines.

Steps To Reproduce

  1. Open the following StackBlitz - https://angular-i59smklb.stackblitz.io/ (version in StackBlitz editor)
  2. Start the StackBlitz with a browser window width of ~700px.
  3. Open the console and see that the initial emitted size is "medium", which is correct.
  4. Click the browser maximize button for the first time, which will cause the window width to map to "large" size.
  5. Observe that no new value is emitted in the console.
  6. Click the browser restore button.
  7. Observe that again "medium" is emitted correctly.
  8. Click the browser maximize button for a second time.
  9. Observe that now the "large" size is detected and emitted in the console.

Screenshots or video

https://go.screenpal.com/watch/cOV3XFn31oj

Actual Behavior

The first maximize action after initial load does not emit the new size change value. All following maximize/restore sequences work as expected and emit the correct size values.

Expected Behavior

The first maximize action should emit a new value ("large") since the window width maps to the large adaptive breakpoint.

Browser

Chrome

OS type

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions