Removed not longer needed @container, added js-notificationsContainer for browser testing.
This commit is contained in:
parent
21817abab6
commit
fd93057d45
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue