author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Tue, 3 Oct 2017 09:10:24 +0000 (12:10 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Tue, 3 Oct 2017 09:22:53 +0000 (12:22 +0300) | ||
commit | fef632c71084b1574d8d6341f47cb19e04f5ede4 | |
tree | 09e0e532be7b1e51d08c7b408857448770b9bbee | tree | snapshot |
parent | 6cb71253f6184abde0041f8d9e7da94fdbf75344 | commit | diff |
FlexUI: added 8/14/16 winN/winN-prop fonts; removed horizontal wrapping
proper horizontal wrapping with size calculations/constraints is not
that easy; it makes the code way more complex, it never really worked,
and i never used it. althrough it is a great feature to have (for
proper windows resizing), it is better served by something like Yoga
(huge and complex). but i want to have a simplistic layouter, suitable
for common UI tasks, and not-so-complex layouts.
maybe i'll add that wrapping feature later, but i'm not sure. it looks
like i need a full-blown constraints solver for this feature, and i am
not ready to migrate to Cassowary yet. ;-)
tl;dr: removing horizontal wrapping allowed me to unify distribution
code, made code smaller (by ~1/3), and more readable. the price
is acceptable (for now).
proper horizontal wrapping with size calculations/constraints is not
that easy; it makes the code way more complex, it never really worked,
and i never used it. althrough it is a great feature to have (for
proper windows resizing), it is better served by something like Yoga
(huge and complex). but i want to have a simplistic layouter, suitable
for common UI tasks, and not-so-complex layouts.
maybe i'll add that wrapping feature later, but i'm not sure. it looks
like i need a full-blown constraints solver for this feature, and i am
not ready to migrate to Cassowary yet. ;-)
tl;dr: removing horizontal wrapping allowed me to unify distribution
code, made code smaller (by ~1/3), and more readable. the price
is acceptable (for now).