-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Openseadragon displays two canvases #2205
Comments
Possibly related to https://www.drupal.org/node/3158256 and how the rollout for it went which at one point introduced a regression. |
I've seen this happening periodically on our dev build. |
I have not had any time to investigate this issue further, but I am leaning toward the above mentioned "once()" reason that Jordan mentioned. I should be able to look at this in the next two weeks -- but in the meanwhile, this patch would "fix" the issue on any given site -- provided that any one page does not need to display more than one openseadragon viewer at a time. |
When this is merged, the issue may be fixed https://www.drupal.org/node/3158256 |
I wonder if we can just change the javascript to have the second parameter in the once() call. From the Drupal page https://www.drupal.org/node/3158256 referenced above, it states:
|
Closing as Islandora/openseadragon#48 was merged. |
In some situations, the OpenSeadragon field formatter is triggering two canvas objects to be created.
For added context, another developer here said
It is possible that something in our MODULE_entity_view hook is causing this to happen.
I patched the javascript code that creates them so that ONLY one canvas is ever created, but that is a bandaid and the real reason is not known yet.
What steps does it take to reproduce the issue?
On any isle site, make an object with Model = "Image" tag it with Display Hints = "Openseadragon", add a media "File" and upload a small TIFF file. (I am not sure if any context rule needs to be set up or a specific display mode, but this is happening when the View the object.
When does this issue occur?
When an object is viewed.
Which page does it occur on?
What happens?
See screenshot above... the regular openseadragon div contains two or more canvas divs.
What did you expect to happen?
Only one canvas for each display of a media.
Which version of Islandora are you using?
2.x-dev
The version of openseadragon is pulled in via our composer.json: "https://github.com/openseadragon/openseadragon/releases/download/v2.4.2/openseadragon-bin-2.4.2.zip"
Which method did you use to install your Islandora instance? (manually, ISLE, playbook, etc.)
Born Digital composer
Any related open or closed issues to this bug report?
none
Screenshots:
see above
The text was updated successfully, but these errors were encountered: