Merge branch 'MDL-61633-master' of https://github.com/lucisgit/moodle

This commit is contained in:
Andrew Nicols 2018-12-17 15:28:29 +08:00
commit 05bbf5ab39
4 changed files with 4 additions and 1 deletions

View file

@ -4655,6 +4655,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);

View file

@ -4655,6 +4655,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);

View file

@ -1380,6 +1380,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);