Skip to content

[web] Ensure window metrics are computed from hostElement #114704

@ditman

Description

@ditman

As part of #32329, currently certain metrics of the window object are hardcoded to look at the actual window object.

This is no longer true, once that the app is embedded in a custom element.

Ensure that the following metrics and events are correctly handled:

  • Physical size
  • Safe zone / padding
  • Resize events
  • ??? others?

Default behavior

If the hostElement is not passed, everything should behave as it does right now (taking measurements from the window object, etc...)

Docs

  • See Cross-platform view information, EngineFlutterWindow section in the design doc

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: new featureNothing broken; request for a new capabilityengineflutter/engine related. See also e: labels.platform-webWeb applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions