On Tue, Jul 22, 2003 at 03:54:06PM +0100, John Levon wrote: > On Tue, Jul 22, 2003 at 04:42:55PM +0200, Andre Poenitz wrote: > > > > The one that moving into rowBreakPoint fixes. A subinset needs to have > > > an adjusted idea of its max width. > > > > Yes. That's why a subinsets metrics() should only be called from its > > 'owners' metrics(). > > I don't see the connection ... of course that should be true but it > doesn't help in getting the right widths much.
Every inset know its max text width: The main text gets it from the workarea, the first minipage from the main text etc. > > Easiest way would be in Screen::drawFromTo immediately before the call > > to paintRows(). > > Ouch. Are you serious ?? Sure. Of course LyXText::metrics() would need to be a bit more clever and not re-do stuff that won't be drawn. > Or is this a LyXText::metrics() that looks > nothing like the one in the tree ? It should look like that. Partially at least. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
