diff --git a/platypush/backend/http/static/js/application.js b/platypush/backend/http/static/js/application.js index 9a87e6a1..ecedb7bb 100644 --- a/platypush/backend/http/static/js/application.js +++ b/platypush/backend/http/static/js/application.js @@ -149,6 +149,12 @@ $(document).ready(function() { $('body').on('mouseup touchend', '[data-modal]', function(event) { var $source = $(event.target); var $modal = $($source.data('modal')); + $modal.height($(document).height() + 2); + + var $container = $modal.find('.modal-container'); + var top = 40 + $(window).scrollTop(); + $container.css('margin-top', top + 'px'); + $modal.fadeIn(); }); };