mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-04 14:20:05 +00:00
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:
parent
215689fa6b
commit
e17bd37955
@ -169,7 +169,7 @@ void InsetBox::setButtonLabel()
|
||||
|
||||
bool InsetBox::hasFixedWidth() const
|
||||
{
|
||||
return !params_.width.empty();
|
||||
return !params_.width.empty() && params_.special == "none";
|
||||
}
|
||||
|
||||
|
||||
|
@ -46,6 +46,7 @@ What's new
|
||||
|
||||
- When a counter is stepped, reset recursively all subcounters (bug #10063).
|
||||
|
||||
- Fix on screen narrow box when using \width as box width unit (bug 10048).
|
||||
|
||||
* INTERNALS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user