Procházet zdrojové kódy

Merge pull request #1984 from jibwa/master

Fix problem with positioning the dropdown when it is on RHS
Igor Vaynberg před 11 roky
rodič
revize
b8fa72db32
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 =  {