Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11319: patch_for_offset_parent_on_new_body_elements.diff

File patch_for_offset_parent_on_new_body_elements.diff, 0.5 kB (added by rubyruy, 9 months ago)
  • src/dom.js

    old new  
    724724      var position = element.getStyle('position'); 
    725725      if (position !== 'static') return proceed(element); 
    726726      element.setStyle({ position: 'relative' }); 
     727      if (element.offsetParent && element.offsetParent.tagName == 'HTML') return $(document.body) 
    727728      var value = proceed(element); 
    728729      element.setStyle({ position: position }); 
    729730      return value;