modules/notification/js/notification_service.js
function reComputeElementsPosition()
        {
            var baseOffset = 0;

            for (var idx = notificationList.length -1; idx >= 0; idx--)
            {
                notificationList[idx].height = getElementHeight(notificationList[idx].elem[0]);
                notificationList[idx].margin = baseOffset;

                notificationList[idx].elem.css('marginBottom', notificationList[idx].margin + 'px');

                baseOffset += notificationList[idx].height + 24;
            }
        }
function reComputeElementsPosition()
        {
            var baseOffset = 0;

            for (var idx = notificationList.length -1; idx >= 0; idx--)
            {
                notificationList[idx].height = getElementHeight(notificationList[idx].elem[0]);
                notificationList[idx].margin = baseOffset;

                notificationList[idx].elem.css('marginBottom', notificationList[idx].margin + 'px');

                baseOffset += notificationList[idx].height + 24;
            }
        }
function reComputeElementsPosition ( ) { var baseOffset = 0 ; for ( var idx = notificationList . length - 1 ; idx >= 0 ; idx -- ) { notificationList [ idx ] . height = getElementHeight ( notificationList [ idx ] . elem [ 0 ] ) ; notificationList [ idx ] . margin = baseOffset ; notificationList [ idx ] . elem . css ( 'marginBottom' , notificationList [ idx ] . margin + 'px' ) ; baseOffset += notificationList [ idx ] . height + 24 ; } }
Compute the notification list element new position.
Usefull when the height change programmatically and you need other notifications to fit.
Compute the notification list element new position . Usefull when the height change programmatically and you need other notifications to fit .