This makes fluctuation of inset hopefully better (#147).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3418 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-01-18 15:40:31 +00:00
parent c7c443e5e2
commit 0a1aedb25a
2 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,7 @@
2002-01-18 Juergen Vigna <jug@sad.it>
* inset.C (getMaxWidth): try to fix fluctuation of collapsable insets.
2002-01-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr> 2002-01-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* insettabular.C (getMaxWidthOfCell): use LyXLength::inPixels * insettabular.C (getMaxWidthOfCell): use LyXLength::inPixels

View File

@ -337,16 +337,12 @@ int UpdatableInset::getMaxWidth(BufferView * bv, UpdatableInset const *) const
if (topx_set && owner()) { if (topx_set && owner()) {
w -= top_x; w -= top_x;
w += owner()->x(); w += owner()->x();
} } else if (owner()) {
#if 0 // already handled above now!!! // this is needed as otherwise we might have a too large inset if
else if (!owner()) { // its top_x afterwards changes to LeftMargin so we try to put at
// give some left margin this should be made better! // least the default margin as top_x
// Idea: LyXText::giveLeftMargin(Inset * inset) will search the
// inset in the text and return the LeftMargin of that row!
lyxerr << "w -= 20\n";
w -= 20; w -= 20;
} }
#endif
if (w < 10) { if (w < 10) {
w = 10; w = 10;
} }