I am trying to use angular material dialog (to be used as a panel for some purposes) on web pages positioned always to the bottom right of the window.
I have implemented something like the following
$mdDialog.show({
controller: function($scope, $mdDialog){
// do something with dialog scope
},
template: '<md-dialog aria-label="My Dialog" style="position: absolute; bottom: 0; right: 0;">'+
'<md-dialog-content class="sticky-container">Blah Blah' +
'</md-dialog-content>' +
'<md-button ng-click=close()>Close</md-button>' +
'</md-dialog>',
targetEvent: elementWrapper,
hasBackdrop: false
});
};
https://plnkr.co/edit/lpFH2L?p=preview
There are two issues:
1- I am not able to scroll normally on the page. The scroll is locked. 2- Even if the scroll is enabled, with setting the position to absolute, when scroll down, the dialog wont stay at the bottom (it will remain on its previous position without going down as scroll).
What is the best way to achieve such a dialog panel using material to create something like google hangout chat panel (which behaves exactly as I want)?