Commit 9ee87105 authored by xjm's avatar xjm
Browse files

Issue #2856364 by drpal, Wim Leers: Reposition Quickedit overlay on toolbar orientation change

parent cd176e1d
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
// Reposition the entity toolbar as the viewport and the position within // Reposition the entity toolbar as the viewport and the position within
// the viewport changes. // the viewport changes.
$(window).on('resize.quickedit scroll.quickedit', debounce($.proxy(this.windowChangeHandler, this), 150)); $(window).on('resize.quickedit scroll.quickedit drupalViewportOffsetChange.quickedit', debounce($.proxy(this.windowChangeHandler, this), 150));
// Adjust the fence placement within which the entity toolbar may be // Adjust the fence placement within which the entity toolbar may be
// positioned. // positioned.
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
this.$fence.remove(); this.$fence.remove();
// Stop listening to additional events. // Stop listening to additional events.
$(window).off('resize.quickedit scroll.quickedit'); $(window).off('resize.quickedit scroll.quickedit drupalViewportOffsetChange.quickedit');
$(document).off('drupalViewportOffsetChange.quickedit'); $(document).off('drupalViewportOffsetChange.quickedit');
Backbone.View.prototype.remove.call(this); Backbone.View.prototype.remove.call(this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment