I have a custom figure with a FlowPage contianing 2 TextFlows with
different fonts. For some reason the TextFlows layout correctly width-wise
and wrap if they are supposed to, but when my custom figure returns the
sum of the height of the TextFlows called by getPreferredSize(-1,-1) it
gets the size as if the TextFlows were on one line. I notice that this is
because the Figure.bounds variable of the TextFlows are already set. If I
repaint the figure (My canvas is in a ScrolledForm that gets reflow()'ed)
the TextFlow's bounds gets set correctly.
Any idea why this might be happening. I understand that InlineFlows get
laid out differently than most figures.