Skip to content

Fix FastNavPlugin snapshot overlay alignment #628

@wielinde

Description

@wielinde

To Reproduce

  • When Xeokit's canvas is a descendant of a DOM elements
  • with margins (top, left,...)
  • when I navigate in the model, lets say pivot
  • then the snapshot that gets blended in has a wrong offset (top, left) value assigned. It adds the ancestor's margins.

Expected behavior
Actually, I don't understand why the image gets top and left attributes set at all. It should be 0 for both of them.

Screenshots
I used one of the latest xoekit-bim-viewer demo examples and added some margins to #myContent and #myViewer
snapshot_offset

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions