Skip to content

Cloning element does not clone the inline styles from code #218

@SamCZ

Description

@SamCZ

Cloning element does not clone the styles (Element::meta)

How to reproduce:

  • Create element in code
  • Set some property through SetProperty()
  • Clone the element and attach it to some other element

Result:

  • Element doest not have set properties and use just loaded css from document

Expected result:

  • Element is cloned with all attributes and properties

I just found this problem when trying to set drag element style in code, when you drag the element in game, it clones it and just use the original css from file and the inline style is erased.
Point of clone: Context.cpp::1208

Edit: Maybe #191 similiar problem ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions