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

  # * `width` The {Number} of pixels.
  # * `height` The {Number} of pixels.
  setSize: (width, height) ->
    @getCurrentWindow().setSize(width, height)

  # Essential: Transition and set the size of the current window.

  # * `x` The {Number} of pixels.
  # * `y` The {Number} of pixels.
  setPosition: (x, y) ->
    x = Math.round(x)
    y = Math.round(y)
    ipc.send('call-window-method', 'setPosition', x, y)

  # Extended: Get the current window
