Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PropertyFactory.iconPadding(Float) overload for better backcompat #2880

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

random3940
Copy link
Contributor

See #2873 for details.

* @return property wrapper around Float
*/
public static PropertyValue<Float> <%- camelizeWithLeadingLowercase(property.name) %>(Float value) {
return new LayoutPropertyValue<>("<%- property.name %>", value);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this be wrapped in new Float[]{value}?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Converter supports both numbers and arrays, so it will work both ways. With number there is a miniscule gain because we don't need to get Convertible into std::vector :)

@random3940 random3940 marked this pull request as ready for review September 29, 2024 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants