Open giacomomasseron opened 8 years ago
I don't quite understand the implications, but I'm absolutely happy to look at a PR (or read more of an explanation regarding what it does)
If you use this dialog in a facebook canvas app, you need a code like this:
FB.Canvas.getPageInfo(
function(info) {
ngDialog.open({
template: response.data.html,
plain: true,
className: 'ngdialog-theme-default',
top: info.scrollTop + 'px',
scope: $scope });
}
);
otherwise your dialog will be shown on the top of the page even if you scrolled the page down.
I'm now open to a PR for this, looks like a useful feature.
Please include a unit test to prove it works?
Hi, since I had problem with using this module inside a facebook canvas app, I added the "top" option to the module on my own. I wanna ask you if you can do it on the repository, cause I think it can be a good feature in some environments.