ng-modal icon indicating copy to clipboard operation
ng-modal copied to clipboard

Preventing modal from being dragged off the top

Open gjsmith66 opened this issue 4 years ago • 5 comments

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.

gjsmith66 avatar Mar 10 '20 22:03 gjsmith66

Can you show a screenshot?

mazdik avatar Mar 11 '20 15:03 mazdik

image

There is no window limits, so user can move the modals outside visible (and selectable) zone. So its impossible to bring the modal back.

jvictorsoto avatar Jun 03 '20 20:06 jvictorsoto

This would be especially important for us as well! (Also regarding the left and right side)

leonfrischauf avatar Jul 07 '20 16:07 leonfrischauf

Similar problem dragging past the bottom... overlay disables everything but cannot continue because no part of the dialog is visible.

pkcinna01 avatar Aug 07 '20 18:08 pkcinna01

added in the version 0.0.6

Attribute Type Default
inViewport boolean false

mazdik avatar Aug 09 '20 09:08 mazdik