likeastore / ngDialog

Modals and popups provider for Angular.js applications
http://likeastore.github.io/ngDialog
3.14k stars 692 forks source link

Option width does not center dialog. #569

Closed andrejflorjancic closed 3 years ago

andrejflorjancic commented 7 years ago

When I use width option, dialog is not centered horizontally. Please add next lines to code where you set width to element.

$dialogContent.style.margin = 'auto'; $dialogContent.style.left = 'inherit';