 			IEventDispatcher(value).addEventListener("heightChanged", changeHandler);
 			IEventDispatcher(value).addEventListener("childrenAdded", changeHandler);
 			IEventDispatcher(value).addEventListener("itemsCreated", changeHandler);
+            IEventDispatcher(value).addEventListener("layoutNeeded", changeHandler);
 			IEventDispatcher(value).addEventListener("beadsAdded", changeHandler);
 		}
 	

						flexibleHorizontalMargins[i].marginRight = mr;
				}
				child.x = ml;
				maxWidth = Math.max(maxWidth, ml + child.width + mr);
			}
			if (hasHorizontalFlex)

				for (i = 0; i < n; i++)
				{
					child = contentView.getElementAt(i) as IUIBase;
					var obj:Object = flexibleHorizontalMargins[i];
					if (obj.marginLeft == "auto" && obj.marginRight == "auto")
						child.x = maxWidth - child.width / 2;
