   ###
   _removeItem: (itemView) ->
     @_packer.remove itemView.id
-    itemView.unrender()
+    if itemView.rendered then itemView.unrender()
+    setGridSize.call @



###*
# Handles a resize event of a GridItemView.
#
# @param {stout-core/event/Event} e - Resize event.

###
isPercentage = (n) ->
  n.indexOf and n.indexOf('%') isnt -1


###*
# Converts the passed `v` param to pixels, if it is a percentage.
#
# @param {string|number} v - The value to convert to pixels.
#
# @param {number} max - The container size, or maximum value of-which the
# percentage is a portion of.
#
# @returns {number} Pixel dimension.
#
# @function convertToPixels
###
convertToPixels = (v, max) ->
  if isPercentage(v)
    max * (parseFloat(v) / 100)
  else
    parseFloat(v)


###*
