Uwe Stöhr wrote:
 >             mi.base.textwidth += 2 * TEXT_TO_INSET_OFFSET;
 >
> The last time I did this for the collapsable inset, I needed to adjust mi.base.textwidth the same > way as dim.wid. Please test and make this change:
 >
 >         mi.base.textwidth += TEXT_TO_INSET_OFFSET / 2;


I haven't changed this setting. But this needn't to be changed as the code order is this:

    labelwidth_ += 2 * TEXT_TO_INSET_OFFSET;
    dim.wid = labelwidth_;
    ...
    mi.base.textwidth -= dim.wid;
    ...
    dim.wid += TEXT_TO_INSET_OFFSET / 2;
    mi.base.textwidth += 2 * TEXT_TO_INSET_OFFSET;


So mi.base.textwidth has already the changed size.

I am not so sure of that and the new bug 3225 is an indication that something is going wrong here...

http://bugzilla.lyx.org/show_bug.cgi?id=3225

Abdel.

Reply via email to