Skip to content

Commit

Permalink
fix language select (via #2521)
Browse files Browse the repository at this point in the history
  • Loading branch information
baev authored Apr 24, 2024
1 parent 9b81bb2 commit 3ab2914
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3ab2914

Please sign in to comment.