fit library is very useful for adjusting the size of a node to fit other nodes inside it.
It is also useful in conjunction with
shift to make a node span to the width/height of other nodes but saty beside them.
I feel this is a common enough situation to justify dedicated keys.
From the code defining the
fit key, all four anchors
east are always considered for fitting. This does make sense for genereal fitting but in some cases it would be useful to fit only in one dimension.
This could be easily achieved by defining something like a
fit width key considering only
west anchors in its calculations.
Here's the question: is it possible to emulate this without duplicating the
fit definition and with minimal hassle?
Additionally: if you use
fit twice in a row, the second overrides the first; it would be great to provide an
also fit key setting the max of the current size and the one fitting the given nodes.
This question is related but the answers avoid the use of the fit library.