Set z-index of synteny highlights, sort Zmenu areas in reverse of rendering order #1131
+8
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requirements
Description
This draft PR would assign z-index values to synteny highlights, and would sort non-draggable image-map areas in reverse of rendering order.
The benefit of this would be more intuitive behaviour of image-map ZMenus in views that have overlapping clickable elements, such as the synteny view.
Views affected
Synteny view
The following example images show the tongue sole synteny view, with red arrows linking Zmenus to the synteny regions for which they are generated.
On the staging site, clicking on a visible synteny region may bring up a Zmenu that is not for that synteny region, but rather for another synteny region obscured by it:

On the sandbox, clicking on a visible synteny region brings up the ZMenu for that region:

Possible complications
This could potentially affect any Ensembl view with an image map.
The following table lists image-map views that have been tested for possible issues.
During initial checks, an issue was identified with how this update deals with views containing draggable areas, and the pull request has since been updated to revert to the previous behaviour in the case of draggable areas.
Merge conflicts
None detected.
Related JIRA Issues (EBI developers only)