     var w = size.width - size.borderLeft - size.borderRight
     if w > 0 {
       NC.pd("expand count \(size.expandWidth) \(size.expandParentWidth) \(expandWidth)")
-      for s in size.children! {
+      NC.pd("child \(size.childExpandWidth) \(size.childExpandMaxWidth)")
+      let cc = size.children!
+      // if size.childExpandWidth {
+      //   var anyCount = 0
+      //   var ma
+      //   var childrenWidths = [Int](count: cc.count, repeatedValue: 0)
+      // }
+      for s in cc {
         if s.width <= w {
           s.element!.draw(ap.x, y: ap.y, size: s)
           ap.x += s.width

      if s.expandParentHeight {
        t.expandParentHeight = true
      }
    }
    if t.width > 0 {
      if borderRight {

    for e in children {
      let s = e.tellSize()
      t.children!.append(s)
      t.childrenWidth += s.width
      if s.height > t.childrenHeight {
        t.childrenHeight = s.height
      }
      if s.expandWidth {
        t.childExpandWidth = true
