MDL-65908 assign: Overflow and positioning updates
Draw all annotation within the drawing canvas instead of the region
This commit is contained in:
+4
-4
@@ -1570,7 +1570,7 @@ Y.extend(ANNOTATIONSTAMP, M.assignfeedback_editpdf.annotation, {
|
||||
*/
|
||||
draw: function() {
|
||||
var drawable = new M.assignfeedback_editpdf.drawable(this.editor),
|
||||
drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION),
|
||||
drawingcanvas = this.editor.get_dialogue_element(SELECTOR.DRAWINGCANVAS),
|
||||
node,
|
||||
position;
|
||||
|
||||
@@ -1586,7 +1586,7 @@ Y.extend(ANNOTATIONSTAMP, M.assignfeedback_editpdf.annotation, {
|
||||
'zIndex': 50
|
||||
});
|
||||
|
||||
drawingregion.append(node);
|
||||
drawingcanvas.append(node);
|
||||
node.setX(position.x);
|
||||
node.setY(position.y);
|
||||
drawable.store_position(node, position.x, position.y);
|
||||
@@ -2543,7 +2543,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||
this.draw = function(focus) {
|
||||
var drawable = new M.assignfeedback_editpdf.drawable(this.editor),
|
||||
node,
|
||||
drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION),
|
||||
drawingcanvas = this.editor.get_dialogue_element(SELECTOR.DRAWINGCANVAS),
|
||||
container,
|
||||
label,
|
||||
marker,
|
||||
@@ -2586,7 +2586,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||
color: COMMENTTEXTCOLOUR
|
||||
});
|
||||
|
||||
drawingregion.append(container);
|
||||
drawingcanvas.append(container);
|
||||
container.setStyle('position', 'absolute');
|
||||
container.setX(position.x);
|
||||
container.setY(position.y);
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+4
-4
@@ -1570,7 +1570,7 @@ Y.extend(ANNOTATIONSTAMP, M.assignfeedback_editpdf.annotation, {
|
||||
*/
|
||||
draw: function() {
|
||||
var drawable = new M.assignfeedback_editpdf.drawable(this.editor),
|
||||
drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION),
|
||||
drawingcanvas = this.editor.get_dialogue_element(SELECTOR.DRAWINGCANVAS),
|
||||
node,
|
||||
position;
|
||||
|
||||
@@ -1586,7 +1586,7 @@ Y.extend(ANNOTATIONSTAMP, M.assignfeedback_editpdf.annotation, {
|
||||
'zIndex': 50
|
||||
});
|
||||
|
||||
drawingregion.append(node);
|
||||
drawingcanvas.append(node);
|
||||
node.setX(position.x);
|
||||
node.setY(position.y);
|
||||
drawable.store_position(node, position.x, position.y);
|
||||
@@ -2543,7 +2543,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||
this.draw = function(focus) {
|
||||
var drawable = new M.assignfeedback_editpdf.drawable(this.editor),
|
||||
node,
|
||||
drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION),
|
||||
drawingcanvas = this.editor.get_dialogue_element(SELECTOR.DRAWINGCANVAS),
|
||||
container,
|
||||
label,
|
||||
marker,
|
||||
@@ -2586,7 +2586,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||
color: COMMENTTEXTCOLOUR
|
||||
});
|
||||
|
||||
drawingregion.append(container);
|
||||
drawingcanvas.append(container);
|
||||
container.setStyle('position', 'absolute');
|
||||
container.setX(position.x);
|
||||
container.setY(position.y);
|
||||
|
||||
@@ -43,7 +43,7 @@ Y.extend(ANNOTATIONSTAMP, M.assignfeedback_editpdf.annotation, {
|
||||
*/
|
||||
draw: function() {
|
||||
var drawable = new M.assignfeedback_editpdf.drawable(this.editor),
|
||||
drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION),
|
||||
drawingcanvas = this.editor.get_dialogue_element(SELECTOR.DRAWINGCANVAS),
|
||||
node,
|
||||
position;
|
||||
|
||||
@@ -59,7 +59,7 @@ Y.extend(ANNOTATIONSTAMP, M.assignfeedback_editpdf.annotation, {
|
||||
'zIndex': 50
|
||||
});
|
||||
|
||||
drawingregion.append(node);
|
||||
drawingcanvas.append(node);
|
||||
node.setX(position.x);
|
||||
node.setY(position.y);
|
||||
drawable.store_position(node, position.x, position.y);
|
||||
|
||||
@@ -160,7 +160,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||
this.draw = function(focus) {
|
||||
var drawable = new M.assignfeedback_editpdf.drawable(this.editor),
|
||||
node,
|
||||
drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION),
|
||||
drawingcanvas = this.editor.get_dialogue_element(SELECTOR.DRAWINGCANVAS),
|
||||
container,
|
||||
label,
|
||||
marker,
|
||||
@@ -203,7 +203,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||
color: COMMENTTEXTCOLOUR
|
||||
});
|
||||
|
||||
drawingregion.append(container);
|
||||
drawingcanvas.append(container);
|
||||
container.setStyle('position', 'absolute');
|
||||
container.setX(position.x);
|
||||
container.setY(position.y);
|
||||
|
||||
Reference in New Issue
Block a user