mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Refefine $.fn.position in terms of offsetTop/Left to work w/ shadow DOM
The default implementation of position seems to barf when things are in the shadow DOM. This seems to be a suitable replacement that doesn’t.
This commit is contained in:
@@ -78,6 +78,11 @@ jQuery.event.remove = (elem, types, originalHandler, selector, mappedTypes) ->
|
||||
handler = HandlersByOriginalHandler.get(originalHandler) ? originalHandler
|
||||
JQueryEventRemove(elem, types, handler, selector, mappedTypes, RemoveEventListener if atom?.commands?)
|
||||
|
||||
jQuery.fn.position = ->
|
||||
top = @[0].offsetTop
|
||||
left = @[0].offsetLeft
|
||||
{top, left}
|
||||
|
||||
tooltipDefaults =
|
||||
delay:
|
||||
show: 1000
|
||||
|
||||
Reference in New Issue
Block a user