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

Mutable constant, Strength&weight in Constraint. #66

Open
cacaodev opened this issue Feb 14, 2015 · 1 comment
Open

Mutable constant, Strength&weight in Constraint. #66

cacaodev opened this issue Feb 14, 2015 · 1 comment
Milestone

Comments

@cacaodev
Copy link
Contributor

Currently, the only way to change the strength or constant in a Constraint is to replace a constraint with a new one with new values.

In a constraint-based UI, the only way to change the size or position of an element is to change the constant of the constraint managing the layout. This is why changing a constant should be simple and efficient.

FYI, set_constant is implemented in a branch of rhea : https://github.com/Nocte-/rhea/blob/0.3/rhea/simplex_solver.cpp#L188

@slightlyoff
Copy link
Owner

I like this a lot better than the add/remove churn. We should do this.

@slightlyoff slightlyoff added this to the 0.1 milestone Feb 16, 2015
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

No branches or pull requests

2 participants