From 2595bf1dd0252027ebba409f8f81d906ab9c099c Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Thu, 23 Apr 2009 15:14:29 +1000 Subject: Layouts: don't mess with the coordinate in the direction we are not laying out. --- src/declarative/fx/qfxlayouts.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/declarative/fx/qfxlayouts.cpp b/src/declarative/fx/qfxlayouts.cpp index a421fd2..b89e795 100644 --- a/src/declarative/fx/qfxlayouts.cpp +++ b/src/declarative/fx/qfxlayouts.cpp @@ -612,7 +612,6 @@ void QFxVerticalLayout::doLayout() setMovingItem(child); child->setY(voffset); setMovingItem(0); - child->setX(0); } voffset += child->height(); voffset += spacing(); @@ -766,7 +765,6 @@ void QFxHorizontalLayout::doLayout() setMovingItem(child); child->setX(hoffset); setMovingItem(0); - child->setY(0); } hoffset += child->width(); hoffset += spacing(); -- cgit v0.12