bpopup icon indicating copy to clipboard operation
bpopup copied to clipboard

Allow forcing of reposition()

Open pavsid opened this issue 11 years ago • 0 comments

Might be a good idea to add a 2nd parameter to the reposition() function to allow forcing of reposition, even if the popup isn't completely inside the window. Currently the function will only work if the popup is completely inside the window, which isn't always ideal, when for example, the height of the content of the popup has changed.

E.g. I load the popup and it sits 100px high in the middle of a mobile screen. I then pull in some other content via AJAX and the content is now 700px high, but reposition() won't fire because the popup is taller than the screen of the mobile. So instead, the popup sits in its original position, with its top edge in the middle of the screen and overflows well off the bottom of the screen.

What would be better is if we could force the reposition to fire, after the new content has been loaded, which would then move the popup to the top of the screen at least.

pavsid avatar Nov 25 '14 09:11 pavsid