From kde-commits Sat Dec 14 19:15:31 2002 From: Lars Knoll Date: Sat, 14 Dec 2002 19:15:31 +0000 To: kde-commits Subject: kdelibs/khtml/rendering X-MARC-Message: https://marc.info/?l=kde-commits&m=103989337414549 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) {