Skip to content

View Hierarchy absolute positioning should be dependent on rendering_system rather than project.platform #83291

@timfish

Description

@timfish

Problem Statement

Currently, the only way to enable absolute positioning for the View Hierarchy wireframe, is to choose a specific project type:

export function getHierarchyDimensions(
hierarchies: ViewHierarchyWindow[],
useAbsolutePosition: boolean = false
): {

getHierarchyDimensions(
hierarchy,
['flutter', 'dart-flutter'].includes(project?.platform ?? '')
),

This means there is currently no way to have absolute positioning outside of those project types.

Solution Brainstorm

Absolute positioning should be dependent on rendering_system. Maybe we should also check rendering_system.includes('absolute') so this can be overridden from the SDKs without having to update a list in Sentry?

We should also document this in the RFC. Currently it doesn't even mention absolute/relative positioning!

Product Area

Issues

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions