diff --git a/core/modules/views/views_ui/js/ajax.js b/core/modules/views/views_ui/js/ajax.js
index 8595dc80d47ba11e5004a65aef86ec622576df40..ef45e244052af32ad3fd5ff6fa45644f18f284d1 100644
--- a/core/modules/views/views_ui/js/ajax.js
+++ b/core/modules/views/views_ui/js/ajax.js
@@ -195,7 +195,7 @@
               if (Drupal.viewsUi.resizeModal) {
                 // If the modal is already at the max height, don't bother with
                 // this since the only reason to do it is to grow the modal.
-                if ($('.views-ui-dialog').height() < parseInt($(window).height() * .8)) {
+                if ($('.views-ui-dialog').height() < parseInt($(window).height() * 0.8, 10)) {
                   Drupal.viewsUi.resizeModal('', true);
                 }
               }