   _outerWidth: (element) ->
     return element.outerWidth true if element.outerWidth?
 
-    css = getComputedStyle element
+    css = getStyle element
 
     styles = [
       'margin-left'

      'border-right-width'
    ]

    width = parseFloat css.getPropertyValue 'width'
    width += parseFloat css.getPropertyValue style for style in styles
    width



  _getInitialParams: ->
    thumbnails = if not @options.thumbnails then false else $(@thumbnails).height()

    css = getStyle @overlay
    horizontal = toInt(css 'padding-left') + toInt(css 'padding-right')
    vertical   = toInt(css 'padding-top') + toInt(css 'padding-bottom')

    header = toInt getStyle(@header)('height')
    if header is 0
      header = 40
      $(@header).css 'height', header
