On Tue, 2005-09-27 at 13:02 +0200, Juergen Spitzmueller wrote:
> Martin Vermeer wrote:
> > Perhaps this should be something like
> > openinlined_ = (textdim_.wid + dim.wid <= mi.base.textwidth - 100);
> 
> OTOH: it isn't strictly bad. At least it is economic wrt vertical screen 
> space.

Yes, and you can have it consistently by using +100 for the constant.

OTOH then also multi-line insets will have the label on the left. (As
they sometimes have now too.)

We can optimise this by making the inlined condition equal to

screen_width / button_width > inset_height / button_height

(explanation: moving the button to the top will add one line
(button_height) but remove one "column" (button_width) both to be
measured relative to the _total_ size in that direction)

Then an inset + button will take a minimum amount of acreage on screen.
Should be doable ;-)

- Martin

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to