Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How does this work with changing style from Javascript? Can I change constraints at runtime and have the entire page be recalculated? I'm not familiar with the Cassowary solver, can it do partial invalidation? or would it need to recalculate the entire layout if only a minor part changes?


It keeps things up to date with DOM changes using Mutation Observers & it does so intelligently so it won't redisplay whole page.

Cassowary is an incremental solver & is optimized for adjusting constraints in runtime.


Awesome, that's what I hoped to hear. I'll definitely be trying it out then, anything over CSS :p




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: