freenode/#clim - IRC Chatlog
Search
6:44:01
jackdaniel
currently our make-space-requirements asserts, that <= 0 min-width width max-width (and similar for height)
6:44:42
jackdaniel
example: sometimes we compbine space requirements where component knows only its minimal width/height
6:45:29
jackdaniel
with other space requirement, where min-width is 0, width is 1 and max-width is +fill+
6:46:02
jackdaniel
result of such combination is min-width=100, width=1, max-width=+fill+, what leads to assertion dropping us in the debugger
6:46:35
jackdaniel
imho this should be adjusted if these criteria can be met like: min-width=100, width=100, max-width=+fill+
8:09:12
jackdaniel
honoring it (or not) is a different (however close) issue. I'm speaking about combining compatible space requirements (when you have requirement [0;10;100] and [20;*;120] then combination should be [20;20;100] (and not [20;10;100] what leads to an error) where [min;optimal;max]
8:11:34
jackdaniel
I've hit the problem when I've tried to specify only a min-width and min-height for text-pane (to be one-column/line-height size)
8:14:32
jackdaniel
that combined with default space requirements yielded [min>0; 0; +fill+] which failed on assertion
8:14:55
jackdaniel
imho we should clamp width to min;max boundries instead of signalling the assertion
8:23:43
jackdaniel
so I'm leaving the assertion, but it is enforced *fater* clamping optimal width/height
8:24:42
jackdaniel
I'm also adding clampf macro to climi: (define-modify-macro clampf (min max) clamp)