I'm working on an Cassowary layout for Android:
https://www.youtube.com/watch?v=f5h-Cc-X4HE&list=UUhNOwhSktPaby5zl3TehZBw
I need the ability to set the intrinsic height/width of views. The value is determined by interrogating the view for a preferred value which is then set as a variable. I've managed to implement this in two different ways:
* Adding and removing linear equation constraints
* Using stay / edit variables.
Using edits appears to be quicker than adding and removing linear constraints but I believe there is a bug in the js and java implementations: It's not possible to make the edit var strength 'required':
The java version seems to be more broken than the javascript version. I've sent a pull request with what I believe to be a partial fix.
Any help with a fix appreciated!
Thanks,
Alex