There is a problem calculating the top position, it can be fixed by adding the code below to the app.js file in `
$scope.addMoreInfoFunction = function(event) {
setTimeout(function() {
$('.mce-btn').on('click', function() {
var bodyTop = $('body').offset().top;
if (bodyTop < 0) {
setTimeout(function() {
var top = parseInt($('#mceu_50').css('top'));
var newTop = top / 2 - bodyTop - 30;
$('#mceu_50').css('top', newTop);
console.log(newTop);
}, 300);
}
});
}, 300);
$mdDialog.show({
controller: ['$scope', '$mdDialog', DialogAddMoreInfoController],
templateUrl: 'addMoreInfo.tmpl.html',
parent: angular.element(document.body),
targetEvent: event,
clickOutsideToClose: true
});
};
});
`
The calculation may be fixed, let me know if it helps
source
share