Prevent modal to go out of window
soner8 opened this issue · 4 comments
I actually can't prevent modal to go out of window, do you have any idea how I can make it ?
you can add some css class so you will be able to drag from all borders of the modal.
.flexible-modal-drag-area-left{
background: rgba(22, 22, 333, 0.2);
width: 50px;
position:absolute;
left:0;
bottom:0;
cursor:move;
}
.flexible-modal-drag-area-right{
background: rgba(22, 22, 333, 0.2);
height: 50px;
position:absolute;
right:0;
bottom:0;
cursor:move;
}
.flexible-modal-drag-area-bottom{
background: rgba(22, 22, 333, 0.2);
height: 50px;
position:absolute;
right:0;
bottom:0;
cursor:move;
}
@wwan5803 this CSS is not working, do you have any other option to prevent modal to go out of browser screen?
any updates on this one? anyway to prevent the modal from being dragged out of window?
Not a solution but if you haven't disabled the keystrokes with disableKeystroke=true, you can use the keyboard arrows to bring it back.