Skip to content

.offset could not be set  #108

@ghost

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

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