mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-59691 assignfeedback_editpdf: Allow comments to collapse to top-left
Forcing them to collapse to the bottom-left corner seems less natural and effectively changes the location of existing comments from pre-3.3
This commit is contained in:
parent
2bd2660751
commit
ad7c719de4
4 changed files with 8 additions and 20 deletions
|
@ -2592,11 +2592,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||||
'height': scrollheight + 'px',
|
'height': scrollheight + 'px',
|
||||||
'overflow': 'hidden'
|
'overflow': 'hidden'
|
||||||
});
|
});
|
||||||
marker.setStyles({
|
marker.setStyle('color', COMMENTCOLOUR[this.colour]);
|
||||||
'position': 'absolute',
|
|
||||||
'bottom': 0 - scrollheight + 'px',
|
|
||||||
'color': COMMENTCOLOUR[this.colour]
|
|
||||||
});
|
|
||||||
this.attach_events(node, menu);
|
this.attach_events(node, menu);
|
||||||
if (focus) {
|
if (focus) {
|
||||||
node.focus();
|
node.focus();
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2592,11 +2592,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||||
'height': scrollheight + 'px',
|
'height': scrollheight + 'px',
|
||||||
'overflow': 'hidden'
|
'overflow': 'hidden'
|
||||||
});
|
});
|
||||||
marker.setStyles({
|
marker.setStyle('color', COMMENTCOLOUR[this.colour]);
|
||||||
'position': 'absolute',
|
|
||||||
'bottom': 0 - scrollheight + 'px',
|
|
||||||
'color': COMMENTCOLOUR[this.colour]
|
|
||||||
});
|
|
||||||
this.attach_events(node, menu);
|
this.attach_events(node, menu);
|
||||||
if (focus) {
|
if (focus) {
|
||||||
node.focus();
|
node.focus();
|
||||||
|
|
|
@ -215,11 +215,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||||
'height': scrollheight + 'px',
|
'height': scrollheight + 'px',
|
||||||
'overflow': 'hidden'
|
'overflow': 'hidden'
|
||||||
});
|
});
|
||||||
marker.setStyles({
|
marker.setStyle('color', COMMENTCOLOUR[this.colour]);
|
||||||
'position': 'absolute',
|
|
||||||
'bottom': 0 - scrollheight + 'px',
|
|
||||||
'color': COMMENTCOLOUR[this.colour]
|
|
||||||
});
|
|
||||||
this.attach_events(node, menu);
|
this.attach_events(node, menu);
|
||||||
if (focus) {
|
if (focus) {
|
||||||
node.focus();
|
node.focus();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue