[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Re: Current konqueror misrendering
From: Pavel Troller <patrol () sinus ! cz>
Date: 2002-03-08 6:30:52
[Download RAW message or body]
> On Thursday 07 March 2002 19:44, Pavel Troller wrote:
>
> > Did anybody noticed this ? I mailed it 5.3. early morning and still
> > nobody answered nor fixed the problem.
>
> Then you should build a test case...
>
Hi!
I tried it, I spent about 2 hours on it but I gave up.
However, I did IMHO a better thing: I found a particular patch which
causes this. It's the following:
Index: rendering/render_flow.cpp
===================================================================
RCS file: /home/kde/kdelibs/khtml/rendering/render_flow.cpp,v
retrieving revision 1.265
retrieving revision 1.266
diff -u -3 -p -r1.265 -r1.266
--- rendering/render_flow.cpp 2002/02/28 18:41:10 1.265
+++ rendering/render_flow.cpp 2002/03/01 23:49:16 1.266
@@ -371,6 +371,11 @@ void RenderFlow::layoutBlockChildren( bo
if ( relayoutChildren || floatBottom() > m_y ||
(child->isReplaced() && (child->style()->width().isPercent() || \
child->style()->height().isPercent()))) child->setLayouted(false);
+ if ( child->style()->flowAroundFloats() && !child->isFloating() &&
+ style()->width().isFixed() && child->minWidth() > lineWidth( m_height ) ) {
+ m_height = floatBottom();
+ prevMargin = 0;
+ }
// kdDebug( 6040 ) << " " << child->renderName() << " loop " << child << \
", " << child->isInline() << ", " << child->layouted() << endl; // kdDebug( \
6040 ) << t.elapsed() << endl; @@ -402,6 +407,7 @@ void \
RenderFlow::layoutBlockChildren( bo
if(checkClear(child)) prevMargin = 0; // ### should only be 0
// if oldHeight+prevMargin < newHeight
+
int margin = child->marginTop();
//kdDebug(0) << "margin = " << margin << " prevMargin = " << prevMargin << \
endl; margin = collapseMargins(margin, prevMargin);
Now I have the latest khtml with this patch reversed and the page renders
OK.
I hope this will help You to fix the problem.
With regards, Pavel Troller
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic