ng-modal
ng-modal copied to clipboard
Preventing modal from being dragged off the top
Is there a way to prevent the modal from being dragged off the top of the screen? I can see that the top value is going negative, can you set a top bounds? Otherwise, my users lose the title bar to drag it back down.
Thanks, great utility, I appreciate it.
Can you show a screenshot?
There is no window limits, so user can move the modals outside visible (and selectable) zone. So its impossible to bring the modal back.
This would be especially important for us as well! (Also regarding the left and right side)
Similar problem dragging past the bottom... overlay disables everything but cannot continue because no part of the dialog is visible.
added in the version 0.0.6
Attribute | Type | Default |
---|---|---|
inViewport | boolean | false |