mirror of
https://github.com/moodle/moodle.git
synced 2025-04-09 02:12:22 +02:00
MDL-61633 assignfeedback_editpdf: Scroll back to top when changing pages
This commit is contained in:
parent
44890bd738
commit
31e1884de2
@ -4595,6 +4595,7 @@ EDITOR.prototype = {
|
||||
drawingcanvas.setStyle('backgroundImage', 'url("' + page.url + '")');
|
||||
drawingcanvas.setStyle('width', page.width + 'px');
|
||||
drawingcanvas.setStyle('height', page.height + 'px');
|
||||
drawingcanvas.scrollIntoView();
|
||||
|
||||
// Update page select.
|
||||
this.get_dialogue_element(SELECTOR.PAGESELECT).set('selectedIndex', this.currentpage);
|
||||
|
File diff suppressed because one or more lines are too long
@ -4595,6 +4595,7 @@ EDITOR.prototype = {
|
||||
drawingcanvas.setStyle('backgroundImage', 'url("' + page.url + '")');
|
||||
drawingcanvas.setStyle('width', page.width + 'px');
|
||||
drawingcanvas.setStyle('height', page.height + 'px');
|
||||
drawingcanvas.scrollIntoView();
|
||||
|
||||
// Update page select.
|
||||
this.get_dialogue_element(SELECTOR.PAGESELECT).set('selectedIndex', this.currentpage);
|
||||
|
@ -1322,6 +1322,7 @@ EDITOR.prototype = {
|
||||
drawingcanvas.setStyle('backgroundImage', 'url("' + page.url + '")');
|
||||
drawingcanvas.setStyle('width', page.width + 'px');
|
||||
drawingcanvas.setStyle('height', page.height + 'px');
|
||||
drawingcanvas.scrollIntoView();
|
||||
|
||||
// Update page select.
|
||||
this.get_dialogue_element(SELECTOR.PAGESELECT).set('selectedIndex', this.currentpage);
|
||||
|
Loading…
x
Reference in New Issue
Block a user