Skip to content

.offset could not be set  #108

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions