venice-ui 2.0.15 → 2.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -51,7 +51,9 @@ const Dropdown = ({ size = 'medium', label, labelPosition = 'top', disabled = fa
|
|
|
51
51
|
positionStyle.left = buttonRect.left + window.scrollX;
|
|
52
52
|
}
|
|
53
53
|
else if (position === 'right') {
|
|
54
|
-
positionStyle.right =
|
|
54
|
+
positionStyle.right =
|
|
55
|
+
window.innerWidth -
|
|
56
|
+
(buttonRect.left + buttonRect.width + window.scrollX);
|
|
55
57
|
}
|
|
56
58
|
setDropdownStyles(positionStyle);
|
|
57
59
|
}
|
|
@@ -50,7 +50,9 @@ const DropdownMenu = ({ size = 'medium', iconName = 'more_vert', header = false,
|
|
|
50
50
|
positionStyle.left = buttonRect.left + window.scrollX;
|
|
51
51
|
}
|
|
52
52
|
else if (position === 'right') {
|
|
53
|
-
positionStyle.right =
|
|
53
|
+
positionStyle.right =
|
|
54
|
+
window.innerWidth -
|
|
55
|
+
(buttonRect.left + buttonRect.width + window.scrollX);
|
|
54
56
|
}
|
|
55
57
|
setDropdownStyles(positionStyle);
|
|
56
58
|
}
|
|
@@ -25,7 +25,9 @@ export const Dropdown = ({ size = 'medium', label, labelPosition = 'top', disabl
|
|
|
25
25
|
positionStyle.left = buttonRect.left + window.scrollX;
|
|
26
26
|
}
|
|
27
27
|
else if (position === 'right') {
|
|
28
|
-
positionStyle.right =
|
|
28
|
+
positionStyle.right =
|
|
29
|
+
window.innerWidth -
|
|
30
|
+
(buttonRect.left + buttonRect.width + window.scrollX);
|
|
29
31
|
}
|
|
30
32
|
setDropdownStyles(positionStyle);
|
|
31
33
|
}
|
|
@@ -24,7 +24,9 @@ export const DropdownMenu = ({ size = 'medium', iconName = 'more_vert', header =
|
|
|
24
24
|
positionStyle.left = buttonRect.left + window.scrollX;
|
|
25
25
|
}
|
|
26
26
|
else if (position === 'right') {
|
|
27
|
-
positionStyle.right =
|
|
27
|
+
positionStyle.right =
|
|
28
|
+
window.innerWidth -
|
|
29
|
+
(buttonRect.left + buttonRect.width + window.scrollX);
|
|
28
30
|
}
|
|
29
31
|
setDropdownStyles(positionStyle);
|
|
30
32
|
}
|