diff --git a/views/js/ui/modal.js b/views/js/ui/modal.js
index <HASH>..<HASH> 100644
--- a/views/js/ui/modal.js
+++ b/views/js/ui/modal.js
@@ -224,11 +224,15 @@ define(['jquery', 'core/pluginifier', 'core/dataattrhandler'], function ($, Plug
                 //Calculate the top offset
                 topOffset = (options.vCenter || modalHeight > windowHeight) ? 40 : (windowHeight - modalHeight) / 2;
                 // check scroll if element in the scrolled container
-                $element.parents().map(function () {
-                    if (this.tagName !== 'BODY' && this.tagName !== 'HTML') {
-                        topOffset += parseInt($(this).scrollTop(), 10);
-                    }
-                });
+                // added later: now offset will be increased only if container element doesn't has class no-scroll-offset
+                // as, sometimes, on screens with lesser height part of modal runs under the bottom browser edge
+                if (!$element.parent().hasClass('no-scroll-offset')) {
+                    $element.parents().map(function () {
+                        if (this.tagName !== 'BODY' && this.tagName !== 'HTML') {
+                            topOffset += parseInt($(this).scrollTop(), 10);
+                        }
+                    });
+                }
                 to = {
                     'opacity': '1',
                     'top': topOffset + 'px'
Modal top offset will be now increased only if its direct container has no class 'no-scroll-offset' (added because sometimes modal bottom part runs under the lower edge of browser);