       return (
         <div className="component-gallery #{@props.className}" style={{overflow: "hidden"}}>
           {React.Children.map(@props.children, (child, i) =>
+            marginBottom = @props.margin
+
             # Disable margin bottom on last row.
             if @props.noMarginBottomOnLastRow
               # Is this component on the last row?

    targetWidth: 200
    widthHeightRatio: 1
    disableServerRender: false
    marginRightBottomRatio: 1

  render: ->
    # If we don't know the component width, there's nothing we can do.

              if (i + 1) > ((numRows - 1) * componentsPerRow)
                marginBottom = 0

            # Set marginBottom if passed in specifically.
            if @props.marginBottom and marginBottom isnt 0
              marginBottom = @props.marginBottom

            if componentsPerRow is 1
              marginRight = 0
