Skip to content

Commit b8fa72d

Browse files
committed
Merge pull request select2#1984 from jibwa/master
Fix problem with positioning the dropdown when it is on RHS
2 parents 5981dcd + 92357e6 commit b8fa72d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ the specific language governing permissions and limitations under the Apache Lic
12081208
}
12091209

12101210
if (!enoughRoomOnRight) {
1211-
dropLeft -= (dropLeft + dropWidth) - viewPortRight;
1211+
dropLeft = offset.left + this.container.outerWidth(false) - dropWidth;
12121212
}
12131213

12141214
css = {

0 commit comments

Comments
 (0)