Prechádzať zdrojové kódy

Merge pull request #1984 from jibwa/master

Fix problem with positioning the dropdown when it is on RHS
Igor Vaynberg 11 rokov pred
rodič
commit
b8fa72db32
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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 =  {