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

8.4.x
xjm 2017-03-04 14:01:37 -06:00
parent cd176e1d24
commit 9ee87105b9
1 changed files with 2 additions and 2 deletions

View File

@ -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 @@
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);