Explorar o código

Merge pull request #1984 from jibwa/master

Fix problem with positioning the dropdown when it is on RHS
Igor Vaynberg %!s(int64=11) %!d(string=hai) anos
pai
achega
b8fa72db32
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 =  {