On Mon, Jun 02, 2003 at 06:30:56PM +0100, John Levon wrote:
> On Mon, Jun 02, 2003 at 07:28:33PM +0200, Andre Poenitz wrote:
> 
> > Would be nice if we had a 'desire width' field for InsetButton at some
> > point of time, though...
> 
> We don't ? Isn't that ->width() ?

That's the 'natural width'. In some cases (like ERT inset) we display less
than that, and we should do that in case of insetbibitem as well, as having
Labels_that_give_the_name_of_the_author_and_the_title_of_the_paper
are not too uncommon when using BiBTeX  (of course, nobody would type them
manually more than once...)

> It would be nice to see the Dimension stuff approach sanity by killing
> off getMaxWidth however. Basically, pass down a "maxwidth" value in
> MetricsInfo - this could theoretically kill the resizeInsetText nonsense
> too - we'd know to resize because the maxwidth would change

It's already partially there, i.e. that's exactly the intended use of

        /// if this is set...
        bool restrictwidth;
        /// ... this is valid
        int textwidth;

in MetricsBase.

But you are right, the same mechanism could be used for the button width,
and for the ERT insets and for the minipages and for the tables and..

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one.     (T. Jefferson or B. Franklin or both...)

Reply via email to