         unless item.small
           item.small = true
           if item.icon and not item.resizeable
-            margin = (@itemProperties.size.height - item.icon.height()) / 2
+            margin = (itemHeight - item.icon.height()) / 2
             item.icon.stop(true).animate(
                 marginTop: margin
                 marginBottom: margin

      Math.pow(Math.abs(layerDiff) / rondell.itemCount, 0.5) * Math.PI
    funcOpacity: (layerDist, rondell) ->
      if rondell.visibleItems > 1 then Math.max(0, 1.0 - Math.pow(layerDist / rondell.visibleItems, 2)) else 0
    
    showCaption: (layerNum) => 
      # Restore automatic height and show caption

      layerDiff = @funcDiff(layerPos - @currentLayer, @)
      layerDiff *= -1 if layerPos < @currentLayer
      
      itemWidth = item.sizeSmall.width * @funcSize(layerDiff, @)
      itemHeight = item.sizeSmall.height * @funcSize(layerDiff, @)
      
      newX = @funcLeft(layerDiff, @) + (@itemProperties.size.width - itemWidth) / 2
      newY = @funcTop(layerDiff, @) + (@itemProperties.size.height - itemHeight) / 2
      
      newZ = @zIndex + (if layerDiff < 0 then layerPos else -layerPos)
      fadeTime = @fadeTime + @itemProperties.delay * layerDist
