Parcourir la source

Merge pull request #1984 from jibwa/master

Fix problem with positioning the dropdown when it is on RHS
Igor Vaynberg il y a 11 ans
Parent
commit
b8fa72db32
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -1208,7 +1208,7 @@ the specific language governing permissions and limitations under the Apache Lic
             }
 
             if (!enoughRoomOnRight) {
-               dropLeft -= (dropLeft + dropWidth) - viewPortRight;
+                dropLeft = offset.left + this.container.outerWidth(false) - dropWidth;
             }
 
             css =  {