瀏覽代碼

Merge pull request #1984 from jibwa/master

Fix problem with positioning the dropdown when it is on RHS
Igor Vaynberg 11 年之前
父節點
當前提交
b8fa72db32
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 =  {