We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29b0ae0 commit d70e639Copy full SHA for d70e639
themes/default/files/scripts/display-base.js
@@ -246,6 +246,18 @@ var display = Numbas.display = /** @lends Numbas.display */ {
246
var elem = img.cloneNode();
247
var wrapper = document.createElement('span');
248
wrapper.setAttribute('class', 'lightbox-image-wrapper');
249
+ var align = img.getAttribute('align');
250
+ switch(align) {
251
+ case 'bottom':
252
+ case 'middle':
253
+ case 'top':
254
+ wrapper.style['vertical-align'] = align;
255
+ break;
256
+ case 'left':
257
+ case 'right':
258
+ wrapper.style['float'] = align;
259
260
+ }
261
262
img.replaceWith(wrapper);
263
0 commit comments