Skip to content

Set a property to equal another property #1

@Raptremrum

Description

@Raptremrum

Scope

To set a canvas width to equal its client width, you need to do:

Z('canvas').width(Z('canvas').clientWidth()[0]);

Tere should be an easier way to do this.

Suggested Solution

Z('canvas').width(Z.clientHeight);

This would involve storing the current values in Z, as this would need to work for groups of canvases as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions