MDL-65908 mod_assign: Remove scroll repositioning.
Absolute positioned elements do not require repositioning on scroll as long as their immediate parent is relatively positioned.
This commit is contained in:
+2
-8
@@ -3663,7 +3663,7 @@ EDITOR.prototype = {
|
||||
* @method open_in_panel
|
||||
*/
|
||||
open_in_panel: function(panel) {
|
||||
var drawingcanvas, drawingregion;
|
||||
var drawingcanvas;
|
||||
|
||||
this.panel = panel;
|
||||
panel.append(this.get('body'));
|
||||
@@ -3674,9 +3674,6 @@ EDITOR.prototype = {
|
||||
drawingcanvas = this.get_dialogue_element(SELECTOR.DRAWINGCANVAS);
|
||||
this.graphic = new Y.Graphic({render: drawingcanvas});
|
||||
|
||||
drawingregion = this.get_dialogue_element(SELECTOR.DRAWINGREGION);
|
||||
drawingregion.on('scroll', this.move_canvas, this);
|
||||
|
||||
if (!this.get('readonly')) {
|
||||
drawingcanvas.on('gesturemovestart', this.edit_start, null, this);
|
||||
drawingcanvas.on('gesturemove', this.edit_move, null, this);
|
||||
@@ -3693,7 +3690,7 @@ EDITOR.prototype = {
|
||||
* @method link_handler
|
||||
*/
|
||||
link_handler: function(e) {
|
||||
var drawingcanvas, drawingregion;
|
||||
var drawingcanvas;
|
||||
var resize = true;
|
||||
e.preventDefault();
|
||||
|
||||
@@ -3716,9 +3713,6 @@ EDITOR.prototype = {
|
||||
drawingcanvas = this.get_dialogue_element(SELECTOR.DRAWINGCANVAS);
|
||||
this.graphic = new Y.Graphic({render: drawingcanvas});
|
||||
|
||||
drawingregion = this.get_dialogue_element(SELECTOR.DRAWINGREGION);
|
||||
drawingregion.on('scroll', this.move_canvas, this);
|
||||
|
||||
if (!this.get('readonly')) {
|
||||
drawingcanvas.on('gesturemovestart', this.edit_start, null, this);
|
||||
drawingcanvas.on('gesturemove', this.edit_move, null, this);
|
||||
|
||||
+5
-5
File diff suppressed because one or more lines are too long
+2
-8
@@ -3663,7 +3663,7 @@ EDITOR.prototype = {
|
||||
* @method open_in_panel
|
||||
*/
|
||||
open_in_panel: function(panel) {
|
||||
var drawingcanvas, drawingregion;
|
||||
var drawingcanvas;
|
||||
|
||||
this.panel = panel;
|
||||
panel.append(this.get('body'));
|
||||
@@ -3674,9 +3674,6 @@ EDITOR.prototype = {
|
||||
drawingcanvas = this.get_dialogue_element(SELECTOR.DRAWINGCANVAS);
|
||||
this.graphic = new Y.Graphic({render: drawingcanvas});
|
||||
|
||||
drawingregion = this.get_dialogue_element(SELECTOR.DRAWINGREGION);
|
||||
drawingregion.on('scroll', this.move_canvas, this);
|
||||
|
||||
if (!this.get('readonly')) {
|
||||
drawingcanvas.on('gesturemovestart', this.edit_start, null, this);
|
||||
drawingcanvas.on('gesturemove', this.edit_move, null, this);
|
||||
@@ -3693,7 +3690,7 @@ EDITOR.prototype = {
|
||||
* @method link_handler
|
||||
*/
|
||||
link_handler: function(e) {
|
||||
var drawingcanvas, drawingregion;
|
||||
var drawingcanvas;
|
||||
var resize = true;
|
||||
e.preventDefault();
|
||||
|
||||
@@ -3716,9 +3713,6 @@ EDITOR.prototype = {
|
||||
drawingcanvas = this.get_dialogue_element(SELECTOR.DRAWINGCANVAS);
|
||||
this.graphic = new Y.Graphic({render: drawingcanvas});
|
||||
|
||||
drawingregion = this.get_dialogue_element(SELECTOR.DRAWINGREGION);
|
||||
drawingregion.on('scroll', this.move_canvas, this);
|
||||
|
||||
if (!this.get('readonly')) {
|
||||
drawingcanvas.on('gesturemovestart', this.edit_start, null, this);
|
||||
drawingcanvas.on('gesturemove', this.edit_move, null, this);
|
||||
|
||||
+2
-8
@@ -367,7 +367,7 @@ EDITOR.prototype = {
|
||||
* @method open_in_panel
|
||||
*/
|
||||
open_in_panel: function(panel) {
|
||||
var drawingcanvas, drawingregion;
|
||||
var drawingcanvas;
|
||||
|
||||
this.panel = panel;
|
||||
panel.append(this.get('body'));
|
||||
@@ -378,9 +378,6 @@ EDITOR.prototype = {
|
||||
drawingcanvas = this.get_dialogue_element(SELECTOR.DRAWINGCANVAS);
|
||||
this.graphic = new Y.Graphic({render: drawingcanvas});
|
||||
|
||||
drawingregion = this.get_dialogue_element(SELECTOR.DRAWINGREGION);
|
||||
drawingregion.on('scroll', this.move_canvas, this);
|
||||
|
||||
if (!this.get('readonly')) {
|
||||
drawingcanvas.on('gesturemovestart', this.edit_start, null, this);
|
||||
drawingcanvas.on('gesturemove', this.edit_move, null, this);
|
||||
@@ -397,7 +394,7 @@ EDITOR.prototype = {
|
||||
* @method link_handler
|
||||
*/
|
||||
link_handler: function(e) {
|
||||
var drawingcanvas, drawingregion;
|
||||
var drawingcanvas;
|
||||
var resize = true;
|
||||
e.preventDefault();
|
||||
|
||||
@@ -420,9 +417,6 @@ EDITOR.prototype = {
|
||||
drawingcanvas = this.get_dialogue_element(SELECTOR.DRAWINGCANVAS);
|
||||
this.graphic = new Y.Graphic({render: drawingcanvas});
|
||||
|
||||
drawingregion = this.get_dialogue_element(SELECTOR.DRAWINGREGION);
|
||||
drawingregion.on('scroll', this.move_canvas, this);
|
||||
|
||||
if (!this.get('readonly')) {
|
||||
drawingcanvas.on('gesturemovestart', this.edit_start, null, this);
|
||||
drawingcanvas.on('gesturemove', this.edit_move, null, this);
|
||||
|
||||
Reference in New Issue
Block a user