Skip to content

Instantly share code, notes, and snippets.

@EmielM
Created December 11, 2009 12:20
Show Gist options
  • Save EmielM/254182 to your computer and use it in GitHub Desktop.
Save EmielM/254182 to your computer and use it in GitHub Desktop.
192c192,195
< 'left': menu.position().left + $e.position().left
---
> 'left': menu.position().left + $e.position().left +
> document.defaultView ?
> (document.defaultView.getComputedStyle(menu, null)['margin-left'] || 0)
> : 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment