       let contentHeight = size.height - size.borderTop - size.borderBottom
       drawBackground(ap.x, y: ap.y, width: w, height: contentHeight,
           strings: backgroundStrings)
+
+
+      ///////////////////////////// start /////////////////////////////////////
+      // This code served as a template for NCDiv's height expanding.
       var childrenList = size.children!
       var widthExpander = size.childWidthExpander
       if widthExpander > 0 {

    let contentHeight = size.height - size.borderTop - size.borderBottom
    drawBackground(ap.x, y: ap.y, width: w, height: contentHeight,
        strings: backgroundStrings)
    for s in size.children! {
      let e = s.element!
      if s.expandWidth || s.width > w {
        var expandedOrClippedSize = s

                widthExpander -= 1
                expanders[i] = false
              }
              if availableWidth == 0 {
                break
              }
            }
          }
        }
        childrenList = changedChildren
        ///////////////////////////// end /////////////////////////////////////
      }

      if align != .Left && size.expandWidth && availableWidth > 0 {
