             # Exception: Children with invisible bounding boxes
             # should remain invisible. This matters
             # mainly for indents starting at the end of a line.
-            unless size.width is 0
-              @dimensions[desiredLine].width += size.width +
-                childNode.margins.left + childNode.margins.right
+            @dimensions[desiredLine].width += size.width +
+              margins.left +
+              margins.right
 
             # Compute max distance above and below text
             @distanceToBase[desiredLine].above = Math.max(
               @distanceToBase[desiredLine].above,
-              distanceToBase[line].above + firstTop)
+              distanceToBase[line].above + margins.top)
             @distanceToBase[desiredLine].below = Math.max(
               @distanceToBase[desiredLine].below,
-              distanceToBase[line].below + lastBottom)
+              distanceToBase[line].below + margins.bottom)
 
         # Height is just the sum of the above-base and below-base counts.
         # Empty lines should have some height.

          @margins =
            top: padding
            bottom: @view.opts.indentTongueHeight
            left: @view.opts.indentWidth + @view.opts.padding
            right: padding
        else if parenttype is 'block' or (
            parenttype is 'socket' and @model.type is 'text')
          @margins =
            top: padding
            bottom: padding
            left: padding
            right: padding
        else
          @margins = {left:0, right:0, top:0, bottom:0}

        for childObj in @children
          @view.getViewNodeFor(childObj.child).computeMargins()

        return null

      # ## computeDimensions
      # Compute the size of our bounding box on each

          # Horizontal margins get added to every line.
          for size, line in dimensions
            desiredLine = line + childObject.startLine
            margins = childNode.getMargins line

            # Unless we are in the middle of an indent,
            # add padding on the right of the child.
