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

Feature auto resizing #110

Merged
merged 12 commits into from
Oct 25, 2023
Merged

Feature auto resizing #110

merged 12 commits into from
Oct 25, 2023

Conversation

gaimanjing
Copy link
Member

@gaimanjing gaimanjing commented Oct 24, 2023

Description

Implemented autoresizing.

Explanation of Changes

Resize children according to horizontalConstraint, verticalConstraint, resizesContent flags.

@gaimanjing gaimanjing requested a review from harry75369 October 24, 2023 07:13
@@ -26,6 +28,18 @@ using Scalar = float;
constexpr auto FLIP_Y_FACTOR = -1;
#define TO_VGG_LAYOUT_SCALAR(x) static_cast<Layout::Scalar>(x)

struct Matrix
Copy link
Member

Choose a reason for hiding this comment

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

Better put math-specific types into include/Math/Math.hpp

Copy link
Member

Choose a reason for hiding this comment

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

Will be fixed in future refactoring.

@harry75369 harry75369 merged commit 305ff9a into main Oct 25, 2023
1 check passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 25, 2023
@gaimanjing gaimanjing deleted the feature-auto-resizing branch October 25, 2023 08:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants