From 0d7074c410960d5ed263c8e5431142086f8a5401 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 19 Oct 2015 10:21:23 +0200 Subject: [PATCH] Resize on item remove. --- .../app/controllers/widget/online_notification.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/assets/javascripts/app/controllers/widget/online_notification.coffee b/app/assets/javascripts/app/controllers/widget/online_notification.coffee index ac9b00eb1..a61b22b92 100644 --- a/app/assets/javascripts/app/controllers/widget/online_notification.coffee +++ b/app/assets/javascripts/app/controllers/widget/online_notification.coffee @@ -165,6 +165,7 @@ class App.OnlineNotificationWidget extends App.Controller row = $(e.target).closest('.activity-entry') id = row.data('id') App.OnlineNotification.destroy(id) + @resetHeight() ) createContainer: => @@ -196,3 +197,8 @@ class App.OnlineNotificationWidget extends App.Controller removeContainer: => @counterUpdate(0) @toggle.popover('destroy') + + resetHeight: -> + notificationsContainer = $('.js-notificationsContainer') + notificationsContainer.find('.popover-content').css('height', "auto") +