Skip to content

Commit

Permalink
Merge branch 'MDL-65484-36' of git://github.com/damyon/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_36_STABLE
  • Loading branch information
abgreeve authored and stronk7 committed May 8, 2019
2 parents eff5fd4 + 09543c0 commit f22174b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
Expand Up @@ -1574,8 +1574,9 @@ Y.extend(ANNOTATIONSTAMP, M.assignfeedback_editpdf.annotation, {

position = this.editor.get_window_coordinates(new M.assignfeedback_editpdf.point(this.x, this.y));
node = Y.Node.create('<div/>');
// If these are absolutely positioned, they escape their scroll container.
node.setStyles({
'position': 'absolute',
'position': 'relative',
'display': 'inline-block',
'backgroundImage': 'url(' + this.editor.get_stamp_image_url(this.path) + ')',
'width': (this.endx - this.x),
Expand Down Expand Up @@ -2585,7 +2586,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
});

drawingregion.append(container);
container.setStyle('position', 'absolute');
container.setStyle('position', 'relative');
container.setX(position.x);
container.setY(position.y);
drawable.store_position(container, position.x, position.y);
Expand Down

Large diffs are not rendered by default.

Expand Up @@ -1574,8 +1574,9 @@ Y.extend(ANNOTATIONSTAMP, M.assignfeedback_editpdf.annotation, {

position = this.editor.get_window_coordinates(new M.assignfeedback_editpdf.point(this.x, this.y));
node = Y.Node.create('<div/>');
// If these are absolutely positioned, they escape their scroll container.
node.setStyles({
'position': 'absolute',
'position': 'relative',
'display': 'inline-block',
'backgroundImage': 'url(' + this.editor.get_stamp_image_url(this.path) + ')',
'width': (this.endx - this.x),
Expand Down Expand Up @@ -2585,7 +2586,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
});

drawingregion.append(container);
container.setStyle('position', 'absolute');
container.setStyle('position', 'relative');
container.setX(position.x);
container.setY(position.y);
drawable.store_position(container, position.x, position.y);
Expand Down
Expand Up @@ -49,8 +49,9 @@ Y.extend(ANNOTATIONSTAMP, M.assignfeedback_editpdf.annotation, {

position = this.editor.get_window_coordinates(new M.assignfeedback_editpdf.point(this.x, this.y));
node = Y.Node.create('<div/>');
// If these are absolutely positioned, they escape their scroll container.
node.setStyles({
'position': 'absolute',
'position': 'relative',
'display': 'inline-block',
'backgroundImage': 'url(' + this.editor.get_stamp_image_url(this.path) + ')',
'width': (this.endx - this.x),
Expand Down
2 changes: 1 addition & 1 deletion mod/assign/feedback/editpdf/yui/src/editor/js/comment.js
Expand Up @@ -204,7 +204,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
});

drawingregion.append(container);
container.setStyle('position', 'absolute');
container.setStyle('position', 'relative');
container.setX(position.x);
container.setY(position.y);
drawable.store_position(container, position.x, position.y);
Expand Down

0 comments on commit f22174b

Please sign in to comment.