From 3ab291494dac224ea2963abfac9777aa8e10edc3 Mon Sep 17 00:00:00 2001 From: Dmitry Baev Date: Wed, 24 Apr 2024 16:03:11 +0100 Subject: [PATCH] fix language select (via #2521) --- .../components/language-select/LanguageSelectView.js | 2 +- .../src/main/javascript/components/tooltip/TooltipView.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/allure-generator/src/main/javascript/components/language-select/LanguageSelectView.js b/allure-generator/src/main/javascript/components/language-select/LanguageSelectView.js index a9039a090..df1992566 100644 --- a/allure-generator/src/main/javascript/components/language-select/LanguageSelectView.js +++ b/allure-generator/src/main/javascript/components/language-select/LanguageSelectView.js @@ -10,7 +10,7 @@ import template from "./LanguageSelectView.hbs"; @className("language-select popover") class LanguageSelectView extends PopoverView { initialize() { - super.initialize({ position: "right" }); + super.initialize({ position: "top-right" }); } setContent() { diff --git a/allure-generator/src/main/javascript/components/tooltip/TooltipView.js b/allure-generator/src/main/javascript/components/tooltip/TooltipView.js index 9b5ed743b..4b80ccd77 100644 --- a/allure-generator/src/main/javascript/components/tooltip/TooltipView.js +++ b/allure-generator/src/main/javascript/components/tooltip/TooltipView.js @@ -12,7 +12,12 @@ export const POSITION = { left: left + width / 2 - tipSize.width / 2, }; }, - + "top-right": function ({ top, left, width }, { offset }, tipSize) { + return { + top: top - tipSize.height - offset, + left: left + width + offset, + }; + }, center: function ({ top, left, height, width }, offsets, tipSize) { return { top: top + height / 2,