From 17b171496cff431eae28560afe3b9b13a49427b2 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 25 Feb 2016 08:07:02 +0100 Subject: [PATCH] Recover of needed code, dropped by mistake. --- app/assets/javascripts/app/lib/bootstrap/popover-enhance.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/app/lib/bootstrap/popover-enhance.js b/app/assets/javascripts/app/lib/bootstrap/popover-enhance.js index 22cfe7584..66fa65122 100644 --- a/app/assets/javascripts/app/lib/bootstrap/popover-enhance.js +++ b/app/assets/javascripts/app/lib/bootstrap/popover-enhance.js @@ -59,6 +59,7 @@ var originalShow = $.fn.popover.Constructor.prototype.show; $.fn.popover.Constructor.prototype.show = function(){ originalShow.call(this); + var maxHeight = $(this.options.viewport.selector).height() - 2 * this.options.viewport.padding; // improved error handling - no exeption if no $tip exists if (!this.$tip) { return