From 9ee87105b9a5fe5ccf771a6af6ef1ff38590c23c Mon Sep 17 00:00:00 2001 From: xjm Date: Sat, 4 Mar 2017 14:01:37 -0600 Subject: [PATCH] Issue #2856364 by drpal, Wim Leers: Reposition Quickedit overlay on toolbar orientation change --- core/modules/quickedit/js/views/EntityToolbarView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/quickedit/js/views/EntityToolbarView.js b/core/modules/quickedit/js/views/EntityToolbarView.js index 4e8e913dda8..4fa0506f538 100644 --- a/core/modules/quickedit/js/views/EntityToolbarView.js +++ b/core/modules/quickedit/js/views/EntityToolbarView.js @@ -51,7 +51,7 @@ // Reposition the entity toolbar as the viewport and the position within // 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 // positioned. @@ -141,7 +141,7 @@ this.$fence.remove(); // Stop listening to additional events. - $(window).off('resize.quickedit scroll.quickedit'); + $(window).off('resize.quickedit scroll.quickedit drupalViewportOffsetChange.quickedit'); $(document).off('drupalViewportOffsetChange.quickedit'); Backbone.View.prototype.remove.call(this);