Prechádzať zdrojové kódy

fixes cutoff for bottom option when selecting with keyboard

romille 10 rokov pred
rodič
commit
633d4e6b4b
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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) {
             if (hb > rb) {
                 results.scrollTop(results.scrollTop() + (hb - rb));
                 results.scrollTop(results.scrollTop() + (hb - rb));
             }
             }