       rfb = @get "rfb"
       deviceToken = @get "file.deviceToken"
       rfb.connect ENV.deviceFarmHost, ENV.deviceFarmPort, '1234', "#{ENV.deviceFarmPath}?token=#{deviceToken}"
+      setTimeout(@.set_ratio.bind(@), 500)
 
     disconnect: ->
       rfb = @get "rfb"

        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
        true

      'onXvpInit': ->

      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"
