Skip to content

Conversation

@nicopap
Copy link
Contributor

@nicopap nicopap commented Jun 28, 2023

Objective

Solution

  • Address compilation errors

I admit: I did sneak it an unrelated mini-refactor. of the measurment.rs module. it seemed to me that directly importing taffy types helped reduce a lot of boilerplate, so I did it.

@nicopap nicopap added A-UI Graphical user interfaces, styles, layouts, and widgets P-Compile-Failure A failure to compile Bevy apps C-Bug An unexpected or incorrect behavior labels Jun 28, 2023
@nicopap nicopap force-pushed the fix-bevy-ui-no-text branch from 2f8f2f5 to baa1517 Compare June 29, 2023 05:41
height: size.y,
}
};
self.measure_func = Some(MeasureFunc::Boxed(Box::new(measure_func)));
Copy link
Contributor

@ickshonpe ickshonpe Jun 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks much cleaner. We should be using type aliases for taffy types in the layout module too maybe.

Copy link
Contributor

@ickshonpe ickshonpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes the compilation issues and the refactorings are nice.

Copy link
Contributor

@wilk10 wilk10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind the sneaky refactor, and the fix for the compilation failure is pretty elegant, imo. Well done!

@nicopap nicopap added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Jun 30, 2023
@mockersf mockersf added this pull request to the merge queue Jul 3, 2023
Merged via the queue into bevyengine:main with commit 9478432 Jul 3, 2023
@nicopap nicopap deleted the fix-bevy-ui-no-text branch August 30, 2023 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior P-Compile-Failure A failure to compile Bevy apps S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bevy_ui doesn't compile without the bevy_text feature

4 participants