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
@@ -3639,7 +3639,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'));
|
||||
@@ -3650,9 +3650,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);
|
||||
@@ -3669,7 +3666,7 @@ EDITOR.prototype = {
|
||||
* @method link_handler
|
||||
*/
|
||||
link_handler: function(e) {
|
||||
var drawingcanvas, drawingregion;
|
||||
var drawingcanvas;
|
||||
var resize = true;
|
||||
e.preventDefault();
|
||||
|
||||
@@ -3692,9 +3689,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);
|
||||
|
||||
+4
-4
File diff suppressed because one or more lines are too long
+2
-8
@@ -3639,7 +3639,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'));
|
||||
@@ -3650,9 +3650,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);
|
||||
@@ -3669,7 +3666,7 @@ EDITOR.prototype = {
|
||||
* @method link_handler
|
||||
*/
|
||||
link_handler: function(e) {
|
||||
var drawingcanvas, drawingregion;
|
||||
var drawingcanvas;
|
||||
var resize = true;
|
||||
e.preventDefault();
|
||||
|
||||
@@ -3692,9 +3689,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
@@ -362,7 +362,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'));
|
||||
@@ -373,9 +373,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);
|
||||
@@ -392,7 +389,7 @@ EDITOR.prototype = {
|
||||
* @method link_handler
|
||||
*/
|
||||
link_handler: function(e) {
|
||||
var drawingcanvas, drawingregion;
|
||||
var drawingcanvas;
|
||||
var resize = true;
|
||||
e.preventDefault();
|
||||
|
||||
@@ -415,9 +412,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