Removed not longer needed @container, added js-notificationsContainer for browser testing.

This commit is contained in:
Martin Edenhofer 2016-03-21 16:11:49 +01:00
parent 21817abab6
commit fd93057d45

View file

@ -1,7 +1,7 @@
class App.OnlineNotificationWidget extends App.Controller class App.OnlineNotificationWidget extends App.Controller
alreadyShown: {} alreadyShown: {}
shown: false shown: false
className: 'popover popover--notifications right' className: 'popover popover--notifications right js-notificationsContainer'
attributes: attributes:
role: 'tooltip' role: 'tooltip'
@ -13,7 +13,6 @@ class App.OnlineNotificationWidget extends App.Controller
'keydown': 'listNavigate' 'keydown': 'listNavigate'
elements: elements:
'.js-notificationsContainer': 'container'
'.js-mark': 'mark' '.js-mark': 'mark'
'.js-item': 'item' '.js-item': 'item'
'.js-content': 'content' '.js-content': 'content'
@ -144,9 +143,6 @@ class App.OnlineNotificationWidget extends App.Controller
if (heightPopoverHeader + heightPopoverContent + heightPopoverSpacer) > heightApp if (heightPopoverHeader + heightPopoverContent + heightPopoverSpacer) > heightApp
heightPopoverContent = heightApp - heightPopoverHeader - heightPopoverSpacer heightPopoverContent = heightApp - heightPopoverHeader - heightPopoverSpacer
@container.addClass('is-overflowing')
else
@container.removeClass('is-overflowing')
@content.css('height', heightPopoverContent) @content.css('height', heightPopoverContent)