 
       isWindow = true unless container?
       if not isWindow
-        container[0].style.height = '1000px'
-        container[0].style.position = 'relative'
-        container[0].style.top = '7999px'
+        container.height(1000)
+        container.offset = -> {top: 7999, left: 0}
       else
         fakeWindow[0].scroll 0, $document[0].body.offsetHeight - 2 * fakeWindow[0].innerHeight - 2
         container = fakeWindow

      if not isWindow
        container[0].style.height = '1000px'
      else
        fakeWindow[0].resizeTo(1000, 1000)
        container = fakeWindow

      scope = $rootScope.$new(true)

      if not isWindow
        container[0].style.height = '1000px'
      else
        container = fakeWindow

      scope = $rootScope.$new(true)
