On Tue, Jun 20, 2006 at 09:14:20AM -0400, Bennett Helm wrote:
> On Jun 20, 2006, at 9:00 AM, Jean-Marc Lasgouttes wrote:
> 
> >Finally, when typing random text in a footnote, everytime the text
> >gets near the right margin, the all the lines of the footnote move
> >right and left. Is that the effect that you described, Bennett?
> 
> I think so. You're typing at the end of the paragraph, and so you see  
> the effect only when you get to the end of the line. Try typing in  
> the middle of a paragraph, and you'll see it pretty consistently.

Do you mean that the button position relative to the text changes between 
above, and
left of the text box?

This is due to insetcollapsable.C:

    138                 dim = dimensionCollapsed();
    139                 if (status() == Open) {
    140                         InsetText::metrics(mi, textdim_);
    141                         openinlined_ = textdim_.wid + 2 * dim.wid <= 
mi.base.textwidth;
    142                         if (openinlined_) {
    143                                 // Correct for button width, and re-fit
    144                                 mi.base.textwidth -= dim.wid;

Look at line 141, the definition of openinlined_, the boolean that controls 
this.

textdim_.wid      = width actually used by the text in the inset
dim.wid           = button width
mi.base.textwidth = _available_ width for this inset, i.e., what its environment
                    maximally allows.

We could play around with this rule to reduce the flipflopping of openinlined_.

- Martin

Attachment: pgpCTVqIE8O5f.pgp
Description: PGP signature

Reply via email to