Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 9f49e10

Browse files
marosoftSplaktar
authored andcommitted
fix(select): perform correct position calculation in rtl for long labels
1 parent 6372027 commit 9f49e10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/select/select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,7 @@ function SelectProvider($$interimElementProvider) {
20122012
container: {
20132013
element: angular.element(containerNode),
20142014
styles: {
2015-
left: Math.floor(clamp(bounds.left, left, bounds.right - containerRect.width)),
2015+
left: Math.floor(clamp(bounds.left, left, bounds.right - minWidth)),
20162016
top: Math.floor(clamp(bounds.top, top, bounds.bottom - containerRect.height)),
20172017
'min-width': minWidth,
20182018
'font-size': fontSize

0 commit comments

Comments
 (0)