Skip to content
Snippets Groups Projects
Select Git revision
  • 54805aa640af410d883e3bc8df0a1283a3ef4fa1
  • annotation-on-video default protected
  • demo_ci
  • 3-upstream-01022023
  • master
  • gh3538-captions
  • 16-adapt-for-images-annot
  • 15-api-for-annotations-on-video
  • 15-annotations-on-videos
  • video_for_annotations
  • wip-1-annotations-on-videos
  • 9-videoviewer-tests
  • 9_wip_videotests
  • 6-fix-tests-and-ci
  • _fix_ci
  • wip-webpack-from-git
16 results

src

user avatar
Johannes Baiter authored and Chris Beer committed
When users configure a viewport margin for OSD (via
`osdConfig.viewportMargins`), annotation rendering would be broken,
since the `osd.viewport.getBoundsNoRottate()` call to get the viewport
boundary would return the viewport *without* the margin, which would
lead to wrong calculations down the line.
The fix is to simply call `osd.viewport.getBoundsNoRotateWithMargins`
instead to obtain the correct full viewport size.
b5bb1f87
History