         if ENUMS.PLATFORM.IOS isnt that.get "file.project.platform"
           # Only resize iOS Devices
           return true
-        display = @get_display()
-        scaleRatio = display.autoscale vncHeight, vncWidth  # TODO: This needs to be set Dynamically
-        @get_mouse().set_scale scaleRatio
+        setTimeout(that.set_ratio.bind(that), 500)
         true
 
       'onXvpInit': ->

    that = @
    @set "rfb", new RFB
      'target': canvasEl
      'encrypt': ENV.deviceFarmSsl
      'repeaterID': ''
      'true_color': true

      true
  ).property "file.project.platform"

  set_ratio: ->
    rfb = @get "rfb"
    display = rfb.get_display()
    canvasEl = display.get_context().canvas
    bounding_rect = canvasEl.getBoundingClientRect()
    scaleRatio = display.autoscale bounding_rect.width, bounding_rect.height
    rfb.get_mouse().set_scale scaleRatio

  actions:
    togglePop: ->
      @set "isPoppedOut", !@get "isPoppedOut"
