 
 This modules contains functions to scroll the viewport and reveal contained elements.
 
-By default Up.js will always scroll to an element before updating it.
-
-The container that will be scrolled is the closest parent of the element that is either:
-
-- The currently open [modal](/up.modal)
-- An element with the attribute `[up-viewport]`
-- The `<body>` element
-- An element matching the selector you have configured using `up.viewport.defaults({ viewSelector: 'my-custom-selector' })`.
-
-@class up.viewport  
+@class up.layout
 ###
 up.layout = (->
 
   u = up.util
 
   ###*
-  @method up.viewport.defaults
+
+
+  @method up.layout.defaults
   @param {String} [options.viewport]
   @param {String} [options.fixedTop]
   @param {String} [options.fixedBottom]

      if existingScrolling = $(this).data(SCROLL_PROMISE_KEY)
        existingScrolling.resolve()

#  obstructionTop = ->
#    line = 0
#    if config.fixedSelector
#      for element in $(config.fixedSelector) ->
#        $element = $(this)
#        top = parseInt($element.css('top'))
#        if $element.css('top').match(/^\d/) && $element.css('bottom') == 'auto'
#
#    line

  measureObstruction = ->

    measurePosition = (obstructor, cssAttr) ->


  ###*
  @private
  @method up.viewport.findViewport
  ###
  findViewport = ($element, viewportSelectorOrElement) ->
    $viewport = undefined
