Avoid narrow boxes when using \width as box width unit

When the box has a special width, one should not consider that as a fixed width. Otherwise, due to implementation quirks, the width will be set on screen as 1 inch.

A better solution would be to actually set the width by taking in account the contents width, height ans total height. This is not very difficult, but I do not know whether it would workout well in the work area.

Fixes bug #10048.
This commit is contained in:
Jean-Marc Lasgouttes 2016-04-05 10:43:16 +02:00
parent 6756637eb5
commit 631098367e
2 changed files with 3 additions and 1 deletions

View File

@ -162,7 +162,7 @@ void InsetBox::setButtonLabel()
bool InsetBox::hasFixedWidth() const
{
return !params_.width.empty();
return !params_.width.empty() && params_.special == "none";
}

View File

@ -163,6 +163,8 @@ What's new
- Fix warning about Undo when an empty subscript is automatically deleted in mathed
(bug 10022).
- Fix on screen narrow box when using \width as box width unit (bug 10048).
* INTERNALS
- Fix parsing problems of class and category declaration line in layout files