Skip to content

0.11 Migration: What to use instead of CalculatedSize #701

@nicopap

Description

@nicopap

In bevy 0.10, CalculatedSized used to have a size field representing the node's "calculated" size, ie: size before layout constraints (is my understanding)

This section of the migration guide describe that "CalculatedSize has been renamed to ContentSize".

However, there is no mention of what to use instead of size! ContentSize has a measure_func field I've no idea how to get back the value that previously was there!

It seems ContentSize was changed in bevyengine/bevy#7779, the migration guide mentions UiImageSize, but I also need to know the content size for text nodes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions