VE-1452: Align the draggable dialog to the surface edge

https://wikia-inc.atlassian.net/browse/VE-1452