summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-10-28 04:21:53 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-10-28 04:23:50 (GMT)
commit6be1b102d27610e7d4417222eb4b4dd80d453295 (patch)
treea6e736c9b5392fdaa0f25ffc71f977c5f84cd22c /src/declarative/fx
parentfc5050497e207abda676d79dc7694f5635bf0f11 (diff)
downloadQt-6be1b102d27610e7d4417222eb4b4dd80d453295.zip
Qt-6be1b102d27610e7d4417222eb4b4dd80d453295.tar.gz
Qt-6be1b102d27610e7d4417222eb4b4dd80d453295.tar.bz2
Fix bug where repeater would add spacing for 0 sized children
Diffstat (limited to 'src/declarative/fx')
-rw-r--r--src/declarative/fx/qfxpositioners.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/declarative/fx/qfxpositioners.cpp b/src/declarative/fx/qfxpositioners.cpp
index f8e7213..cc385e0 100644
--- a/src/declarative/fx/qfxpositioners.cpp
+++ b/src/declarative/fx/qfxpositioners.cpp
@@ -659,8 +659,10 @@ void QFxRow::doPositioning()
child->setX(hoffset);
setMovingItem(0);
}
- hoffset += child->width();
- hoffset += spacing();
+ if(!child->width() || !child->height()){//don't advance for invisible children
+ hoffset += child->width();
+ hoffset += spacing();
+ }
}
}