Skip to content

Use a "container size" when measuring components #141

@haydn

Description

@haydn

When resizing a layer to its natural width/height is would make sense for the maximum width/height to be determined by its container. Currently there aren't any containers, but if we had "frame" type layers, those would act as containers. Maybe it should be maxWidth and maxHeight props that are passed? We need to think about how to deal with the layer being positioned at an offset from 0,0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions