[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/khtml/rendering
From: Lars Knoll <knoll () kde ! org>
Date: 2002-12-14 19:15:31
[Download RAW message or body]
CVS commit by knoll:
position child correctly before calling layout. Fixes the initial
layout problem on www.cnn.com
M +2 -2 render_flow.cpp 1.311
--- kdelibs/khtml/rendering/render_flow.cpp #1.310:1.311
@@ -494,9 +494,9 @@ void RenderFlow::layoutBlockChildren( bo
}
- child->setPos(child->xPos(), m_height);
+ int chPos = xPos + child->marginLeft();
+ child->setPos(chPos, m_height);
if ( !child->layouted() )
child->layout();
- int chPos = xPos + child->marginLeft();
if(style()->direction() == LTR) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic