open-craft/xblock-image-explorer — pull request #1 by e-kolpakov (2014-09-09 06:50:33+00:00)
Title: Added ability to force reveal side in xblock markup

This patch allows to explicitly set on which side hotspot popup must be shown.

Affected components: xblock-image-explorer
Affected users: backward compatible with existing course setups. Opt-in to override behavior.

Test instructions (`...` means leave other attributes as is):
1. Import attached course tarball
2. Log in to studio using staff@example.com / edx
3. Navigate to only unit in the course
4. There should be two image-explorer Xblocks: Full auto and Overrides.
5. Full auto should show both popups to the right of the hotspot
6. Overrides should show top hotspot's popup to the right, bottom hotspot's popup to the left.
7. Edit Overrides Xblock so that `` elements have their `side` attributes changed:
7.1. Set first (hotspotA) `` - should display first hotspot's popup to the right
7.2. Set second (hotspotB) `` - should display second hotspot's popup to the left
7.3. Set first (hotspotA) `` side to anything except `left` or `right` - should display first hotspot's popup in automatic mode (if x and y haven't changed - to the right)
7.4. Set first (hotspotA) `` - should display popup to the right, despite crossing image border
7.5. Set first (hotspotA) `` - should display popup to the left, despite crossing image border