I am layouting a
Makie.jl figure with some figure elements (at
[1,2]) and a text box (at
[2,2]). The text box is created as well as an axis and the text is written (a little painfully) into it. To get a well-behaved layout, I am currently using
colsize! and specifying fixed sizes for the text part at figure startup in case the corresponding graphic needs too little space but else the colums and rows only get assigned relative widths and heights.
Yet, this does not behave well if the user resizes the whole figure. Therefore it would be very useful to specify something like
MinSize(200) as a
ContentSize as a 3rd argument to
colsize!(). Is something like this possible? Even better, is it possible to force the text box to adapt to a minimum such that the text is always fully displayed (since different users may want different font sizes, etc.).
So far I am hacking via
ax.layoutobservables.computedbbox.val.widths into the layout system to get an idea what the size of the current axis is, but I was having some trouble with the column size in which case it was consistently larger than what was set via
colsize!() at the cell corresponding to that axis. Is there a better way to determine the size a figure cell in grid layout currently occupies?