Skip to content

Commit 0e73a50

Browse files
committed
natus-143 Fix placement tutorial bubble when overflow on X axis
1 parent 03a078c commit 0e73a50

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

webapp/components/general/TutorialBubble.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ const TutorialBubble = ({
4747

4848
// Check if element2 is outside the viewport horizontally
4949
if (x + width2 > windowWidth) {
50-
x = rect1.left - width2;
50+
// x = rect1.left - width2;
51+
x = rect1.left - ((x + width2) - windowWidth + rectMargin);
5152
}
5253

5354
if (x < 0) {

0 commit comments

Comments
 (0)