mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
Fix "turds" when changing openinline_ and button jumps around
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10663 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
97181d8fd5
commit
78ec40122d
@ -1,3 +1,7 @@
|
||||
2005-12-16 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
|
||||
* insetcollapsable.C: fix "turds" when changing openinlined_
|
||||
|
||||
2005-12-05 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
|
||||
* insetbox.[Ch]: fix bugs 2136, 2123
|
||||
|
@ -138,7 +138,10 @@ void InsetCollapsable::metrics(MetricsInfo & mi, Dimension & dim) const
|
||||
dim = dimensionCollapsed();
|
||||
if (status() == Open) {
|
||||
InsetText::metrics(mi, textdim_);
|
||||
bool oldopeninlined = openinlined_;
|
||||
openinlined_ = (textdim_.wid + dim.wid <= mi.base.textwidth);
|
||||
if (openinlined_ != oldopeninlined)
|
||||
InsetText::metrics(mi, textdim_);
|
||||
if (openinlined_) {
|
||||
dim.wid += textdim_.wid;
|
||||
dim.des = max(dim.des - textdim_.asc + dim.asc, textdim_.des);
|
||||
|
Loading…
x
Reference in New Issue
Block a user