       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"

      rfb = @get "rfb"
      deviceToken = @get "file.deviceToken"
      rfb.connect ENV.deviceFarmHost, ENV.deviceFarmPort, '1234', "#{ENV.deviceFarmPath}?token=#{deviceToken}"

    disconnect: ->
      rfb = @get "rfb"

        if ENUMS.PLATFORM.IOS isnt that.get "file.project.platform"
          # Only resize iOS Devices
          return true
        setTimeout(that.set_ratio.bind(that), 500)
        true

      'onXvpInit': ->
