Skip to content

Owner Document/dimensions_scale on dynamically created <img> Elements #310

@kim8823

Description

@kim8823

My app uses density independent pixel ratio to support high-density displays, I'm using the latest release, 4.3.
I'm loading a document and clone a subtree that contains images. These cloned images come out too small when using a dp ratio > 1 because they don't have an owner document when LoadTexture runs, can't find a context and default to a dp ratio of 1. The same happens with manually created elements (Rml::Factory::InstanceElement in my case), although I haven't looked closely at those yet.

The cloning happens right after loading the document, InstanceElement is called in an instancer for custom elements that are loaded with the document, before any Update calls. When they get to LoadTexture they should already be firmly attached to the document, so I'm not sure what the actual issue is.

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