Browse Source

fixes cutoff for bottom option when selecting with keyboard

romille 10 năm trước cách đây
mục cha
commit
633d4e6b4b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -1532,7 +1532,7 @@ the specific language governing permissions and limitations under the Apache Lic
                 }
             }
 
-            rb = results.offset().top + results.outerHeight(true);
+            rb = results.offset().top + results.outerHeight(false);
             if (hb > rb) {
                 results.scrollTop(results.scrollTop() + (hb - rb));
             }