   # * `width` The {Number} of pixels.
   # * `height` The {Number} of pixels.
   setSize: (width, height) ->
+    width = Math.round(width)
+    height = Math.round(height)
     @getCurrentWindow().setSize(width, height)
 
   # Essential: Transition and set the size of the current window.

  setSizeAnimated: (width, height, duration=400) ->
    cubicInOut = (t) -> if t<.5 then 4*t**3 else (t-1)*(2*t-2)**2+1
    win = @getCurrentWindow()
    startBounds = win.getBounds()

    startTime = Date.now()


  setMinimumWidth: (minWidth) ->
    win = @getCurrentWindow()
    minWidth = Math.round(minWidth)
    minHeight = win.getMinimumSize()[1]
    win.setMinimumSize(minWidth, minHeight)

