You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no way to set offset to an element.
here is a patch to make it work
class Element
def offset value = nil
if value.nil?
Native(self.offset())
else
left = value[:left].to_f
top = value[:top].to_f
Native(self.offset({left: #{left}, top: #{top}}))
end
end
end
The text was updated successfully, but these errors were encountered:
There's no way to set offset to an element.
here is a patch to make it work
class Element
def offset value = nil
if value.nil?
Native(
self.offset()
)else
left = value[:left].to_f
top = value[:top].to_f
Native(
self.offset({left: #{left}, top: #{top}})
)end
end
end
The text was updated successfully, but these errors were encountered: