From 2bf049fd505195badcea90b1408c5d96bb71df86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Warnon?= Date: Mon, 8 Mar 2021 14:58:48 +0000 Subject: [PATCH] [FIX] crm: reposition tooltip to avoid resize flicker The tour bubble "animation" that makes it to bounce up and down can cause issues when its position is at the edge of the bottom of the screen. In the CRM tour, this would make the window constantly resize to show a scrollbar and then resize to hide the scrollbar, creating quite a sickening effect visually. While waiting for a more "robust" solution on the framework side, we solve this occurrence of the issue by simply moving the tooltip position on top of the button instead of below it. Task-2476595 closes odoo/odoo#68470 X-original-commit: cdb7a8ad7647649ad8f595454aa9dc0464117568 Signed-off-by: Thibault Delavallee (tde) --- addons/crm/static/src/js/tours/crm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm/static/src/js/tours/crm.js b/addons/crm/static/src/js/tours/crm.js index ced614ac8c3..8c2e13506fb 100644 --- a/addons/crm/static/src/js/tours/crm.js +++ b/addons/crm/static/src/js/tours/crm.js @@ -60,7 +60,7 @@ tour.register('crm_tour', { }, { trigger: '.modal-footer button[name="action_close_dialog"]', content: _t("All set. Let’s Schedule it."), - position: "bottom", + position: "top", // dot NOT move to bottom, it would cause a resize flicker, see task-2476595 run: function (actions) { actions.auto('.modal-footer button[special=cancel]'); },